Expand description
This module defines shared data structures and components used across various
OpenAI API groups. It includes common types for requests, responses,
and specific components like chat, audio, and image-related structures.
§Component Organization
Components are logically organized into the following groups:
§Core Components
Foundation components used across all API endpoints:
models-OpenAImodel definitionscommon- Common types and utilitiesinput- Common input handlingoutput- Common output handlingquery- Query parameter handling
§Endpoint Components
§Chat & Completions
chat_shared- Chat completion componentscompletions_legacy- Legacy completions (deprecated)
§Assistants
assistants_shared- Assistant API components
§Files & Storage
files- File operationsuploads- File uploadsvector_stores_shared- Vector store management
§Media Processing
§Real-time Communication
realtime_shared- Real-time API components
§Batch Operations
batch_shared- Batch operationsfine_tuning_shared- Fine-tuning jobs
§Content Processing
moderations- Content moderationembeddings- Text embeddings
§Administration
administration_shared- Admin operationsaudit_logs_shared- Audit loggingusage_shared- Usage tracking
§Specialized Components
Modules§
- administration_
shared - Structures shared across the Administration API endpoints (Users, Projects, Invites, API Keys, Rate Limits).
- assistants_
shared - Structures shared across the Assistants API, including Assistants, Threads, Messages, Runs, and Steps.
- audio
- Structures related to audio transcription and translation.
- audit_
logs_ shared - Structures related to Audit Logs API endpoints.
- batch_
shared - Structures shared across the Batch API.
- chat_
shared - This module defines shared data structures and components used across various
OpenAIchat-related API endpoints. It includes definitions for chat completion requests, messages, content parts, and tool-related structures. - common
- Defines common data structures (components) used across various
OpenAIAPI responses and requests. Based on the components/schemas section of theOpenAPIspecification. - completions_
legacy - Structures related to the legacy Completions API.
- embeddings
- Structures related to embeddings, representing vector representations of text.
- embeddings_
request - Request structures for embeddings API
- exposed
- Exposed namespace of the module.
- files
- Structures related to file objects used across the API.
- fine_
tuning_ shared - Structures shared across the Fine-tuning API, including jobs, checkpoints, and events.
- images
- Structures related to image generation and manipulation responses.
- input
- Structures related to input content parts and messages.
- models
- Structures related to model information.
- moderations
- Structures related to content moderation results.
- orphan
- Orphan namespace of the module.
- output
- Structures related to output items generated by the model, such as messages, tool calls, and annotations.
- own
- Own namespace of the module.
- prelude
- Prelude to use essentials:
use my_module ::prelude :: *. - query
- Defines common query parameters used for listing resources (pagination, sorting).
- realtime_
shared - Structures shared across the Realtime API for session management and event handling.
- responses
- This module defines the data structures for requests and responses related to the
OpenAIResponses API. It includes the mainCreateResponseRequestfor generating model responses, theResponseObjectobject representing a generated response, and various stream event structures for real-time response generation. - tools
- This module defines various tool-related structures used across the
OpenAIAPI. - uploads
- Structures related to the Uploads API for handling large file uploads in parts.
- usage_
shared - Structures related to API Usage and Costs endpoints.
- vector_
stores_ shared - Structures related to Vector Stores, including files, batches, and search results.