Module openai

Source
Expand description

§OpenAI compatible functionality.

Structs§

ChatCompletionRequest
Chat completion request following OpenAI’s specification
CompletionRequest
Legacy OpenAI compatible text completion request
FunctionCalled
Represents a function call made by the assistant
ImageGenerationRequest
Image generation request
JsonSchemaResponseFormat
JSON Schema for structured responses
Message
Represents a single message in a conversation
MessageContent
Message content that can be either simple text or complex structured content
MessageInnerContent
Inner content structure for messages that can be either a string or key-value pairs
ModelObject
Model information metadata about an available mode
ModelObjects
Collection of available models
SpeechGenerationRequest
Speech generation request
ToolCall
Represents a tool call made by the assistant

Enums§

AudioResponseFormat
Audio format options for speech generation responses.
Grammar
Grammar specification for structured generation
ResponseFormat
Response format for model output
StopTokens
Stop token configuration for generation