package
0.0.0-20250208023750-2ddeb7052770
Repository: https://github.com/envoyproxy/ai-gateway.git
Documentation: pkg.go.dev
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI API.
Chat message role defined by the OpenAI API.
No description provided by the author
# Structs
ChatCompletionAssistantMessageParam Messages sent by the model in response to user messages.
ChatCompletionAssistantMessageParamAudio Data about a previous audio response from the model.
ChatCompletionAssistantMessageParamContent Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation).
ChatCompletionChoicesLogprobs Log probability information for the choice.
No description provided by the author
ChatCompletionContentPartImageParam Learn about [image inputs](https://platform.openai.com/docs/guides/vision).
No description provided by the author
ChatCompletionContentPartInputAudioParam Learn about [audio inputs](https://platform.openai.com/docs/guides/audio).
No description provided by the author
ChatCompletionContentPartTextParam Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation).
ChatCompletionContentPartUserUnionParam Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation).
ChatCompletionDeveloperMessageParam Developer-provided instructions that the model should follow, regardless of messages sent by the user.
No description provided by the author
ChatCompletionMessageToolCallFunctionParam The function that the model called.
No description provided by the author
ChatCompletionRequest represents a request structure for chat completion API.
ChatCompletionResponse represents a response from /v1/chat/completions.
ChatCompletionResponseChoice is described in the OpenAI API documentation: https://platform.openai.com/docs/api-reference/chat/object#chat/object-choices.
ChatCompletionResponseChoiceMessage is described in the OpenAI API documentation: https://platform.openai.com/docs/api-reference/chat/object#chat/object-choices.
ChatCompletionResponseChunk is described in the OpenAI API documentation: https://platform.openai.com/docs/api-reference/chat/streaming#chat-create-messages.
ChatCompletionResponseChunkChoice is described in the OpenAI API documentation: https://platform.openai.com/docs/api-reference/chat/streaming#chat/streaming-choices.
ChatCompletionResponseChunkChoiceDelta is described in the OpenAI API documentation: https://platform.openai.com/docs/api-reference/chat/streaming#chat/streaming-choices.
No description provided by the author
No description provided by the author
ChatCompletionResponseUsage is described in the OpenAI API documentation: https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage.
ChatCompletionSystemMessageParam Developer-provided instructions that the model should follow, regardless of messages sent by the user.
No description provided by the author
No description provided by the author
No description provided by the author
ChatCompletionUserMessageParam Messages sent by an end user, containing prompts or additional context information.
Error is described in the OpenAI API documentation https://platform.openai.com/docs/api-reference/realtime-server-events/error.
No description provided by the author
No description provided by the author
LogProb represents the probability information for a token.
LogProbs is the top-level structure containing the log probability information.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
ChatCompletionAssistantMessageParamContentType The type of the content part.
ChatCompletionChoicesFinishReason The reason the model stopped generating tokens.
No description provided by the author
ChatCompletionContentPartImageType The type of the content part.
ChatCompletionContentPartInputAudioInputAudioFormat The format of the encoded audio data.
ChatCompletionContentPartInputAudioType The type of the content part.
ChatCompletionContentPartRefusalType The type of the content part.
ChatCompletionContentPartTextType The type of the content part.
ChatCompletionMessageToolCallType The type of the tool.
No description provided by the author
Deprecated: use FunctionDefinition instead.
No description provided by the author