ChatCompletionOptions
@Serializable
Advanced fields whose types differ from the original Chat request contract.
Constructors
Link copied to clipboard
constructor(messages: List<ChatInputMessage>? = null, tools: List<ChatTool>? = null, toolChoice: ChatToolSelection? = null, metadata: Map<String, String>? = null, parallelToolCalls: Boolean? = null, serviceTier: String? = null, safetyIdentifier: String? = null, promptCacheKey: String? = null, promptCacheOptions: ChatPromptCacheOptions? = null, verbosity: String? = null, moderation: ChatModeration? = null, modalities: List<String>? = null, audio: ChatAudioConfig? = null, prediction: ChatPrediction? = null, streamOptions: ChatStreamOptions? = null)
Properties
Link copied to clipboard
Audio output voice and format.
Link copied to clipboard
Replaces request messages with richer multimodal messages.
Link copied to clipboard
Requested output modalities, such as text and audio.
Link copied to clipboard
Moderation configuration.
Link copied to clipboard
Allow multiple tool calls in a single model turn.
Link copied to clipboard
Predicted output content that can reduce generation latency.
Link copied to clipboard
Cache routing key for related prompts.
Link copied to clipboard
Prompt caching behavior.
Link copied to clipboard
Stable end-user identifier used for abuse detection.
Link copied to clipboard
Requested processing tier.
Link copied to clipboard
Streaming usage and obfuscation settings.
Link copied to clipboard
Replaces the original function-only tool choice.