DialOptions class final
Options for streamDial.
Constructors
- DialOptions({required String apiKey, String? apiVersion, CancelToken? cancelToken, String? sessionId, String? cacheRetention, bool? cacheMarkersSupported})
-
Creates DIAL options.
const
Properties
- apiKey → String
-
DIAL API key, sent as the
Api-Keyheader. Empty sends no auth header (a keyless local DIAL Core then simply serves the request).final - apiVersion → String?
-
Optional DIAL API version, appended as the
api-versionquery parameter (Azure-style versioning). Current DIAL Core accepts requests without it, so the default is to omit the parameter.final - cacheMarkersSupported → bool?
-
Whether the deployment honors manual
cache_breakpointmarkers (the DIAL/openai/modelsfeatures.cacheflag; see fetchDialModelsInfo). Null = unknown — the adapter optimistically sends markers and falls back marker-less on a 4xx/5xx answer. False = the endpoint reported the deployment as cache-unsupported; markers are never sent.final - cacheRetention → String?
-
Prompt-cache retention (see OpenAICompletionsOptions.cacheRetention).
final
- cancelToken → CancelToken?
-
Cancels the in-flight request when triggered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
Session id used as the prompt-cache affinity key (see
OpenAICompletionsOptions.sessionId).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited