Expand description
This module defines shared data structures and components used across various OpenAI chat-related API endpoints.
It includes definitions for chat completion requests, messages, content parts, and tool-related structures.
For more details, refer to the OpenAI Chat API documentation.
Modules§
- exposed
- Exposed namespace of the module.
- orphan
- Orphan namespace of the module.
- own
- Own namespace of the module.
- prelude
- Prelude to use essentials:
use my_module ::prelude :: *.
Structs§
- Chat
Completion Choice - Represents a choice in a chat completion response.
- Chat
Completion Logprobs - Represents log probability information for a chat completion choice.
- Chat
Completion Logprobs Content - Represents log probability information for a single token in the completion.
- Chat
Completion Logprobs TopLogprob - Represents a top log probability token.
- Chat
Completion Message Tool Call - Represents a tool call generated by the model.
- Chat
Completion Message Tool Call Function - Represents a function call within a tool call.
- Chat
Completion Request - Represents a chat completion request.
- Chat
Completion Request Message - Represents a message in a chat completion request.
- Chat
Completion Request Message Content Image Url - Represents an image URL in a chat completion request message content part.
- Chat
Completion Response Format - Represents the format that the model must output.
- Chat
Completion Response Message - Represents a message in a chat completion response.
- Chat
Completion Stream Choice - Represents a choice in a streaming chat completion response.
- Chat
Completion Stream Response - Represents a streaming chat completion response.
- Chat
Completion Stream Response Message - Represents a message in a streaming chat completion response.
- Chat
Completion Tool - Represents a tool that can be used by the model.
- Chat
Completion Usage - Represents usage statistics for a chat completion request.
- Create
Chat Completion Response - Represents a chat completion response.
- Tool
Choice Function - Represents a function to force the model to use.
- Tool
Choice Object - Represents a specific tool to force the model to use.
Enums§
- Chat
Completion Request Message Content - Represents the content of a message in a chat completion request. Can be a simple string or a list of content parts (for multimodal input).
- Chat
Completion Request Message Content Part - Represents a part of the content in a chat completion request message. Can be text or an image URL.
- Tool
Choice Option - Represents the choice of tool to use.