Commit 530f9b80
Changed files (15)
src
openai
resources
beta
threads
chat
completions
types
src/openai/resources/beta/threads/runs/runs.py
@@ -39,7 +39,6 @@ from .....lib.streaming import (
AsyncAssistantEventHandlerT,
AsyncAssistantStreamManager,
)
-from .....types.chat_model import ChatModel
from .....types.beta.threads import (
run_list_params,
run_create_params,
@@ -47,6 +46,7 @@ from .....types.beta.threads import (
run_submit_tool_outputs_params,
)
from .....types.beta.threads.run import Run
+from .....types.shared.chat_model import ChatModel
from .....types.shared_params.metadata import Metadata
from .....types.beta.assistant_tool_param import AssistantToolParam
from .....types.beta.assistant_stream_event import AssistantStreamEvent
src/openai/resources/beta/threads/threads.py
@@ -49,9 +49,9 @@ from ....lib.streaming import (
AsyncAssistantEventHandlerT,
AsyncAssistantStreamManager,
)
-from ....types.chat_model import ChatModel
from ....types.beta.thread import Thread
from ....types.beta.threads.run import Run
+from ....types.shared.chat_model import ChatModel
from ....types.beta.thread_deleted import ThreadDeleted
from ....types.shared_params.metadata import Metadata
from ....types.beta.assistant_stream_event import AssistantStreamEvent
src/openai/resources/beta/assistants.py
@@ -23,8 +23,8 @@ from ...types.beta import (
assistant_update_params,
)
from ..._base_client import AsyncPaginator, make_request_options
-from ...types.chat_model import ChatModel
from ...types.beta.assistant import Assistant
+from ...types.shared.chat_model import ChatModel
from ...types.beta.assistant_deleted import AssistantDeleted
from ...types.shared_params.metadata import Metadata
from ...types.beta.assistant_tool_param import AssistantToolParam
src/openai/resources/chat/completions/completions.py
@@ -37,7 +37,7 @@ from ....types.chat import (
completion_update_params,
)
from ...._base_client import AsyncPaginator, make_request_options
-from ....types.chat_model import ChatModel
+from ....types.shared.chat_model import ChatModel
from ....types.chat.chat_completion import ChatCompletion
from ....types.shared_params.metadata import Metadata
from ....types.chat.chat_completion_chunk import ChatCompletionChunk
src/openai/types/beta/threads/run_create_params.py
@@ -5,7 +5,7 @@ from __future__ import annotations
from typing import List, Union, Iterable, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict
-from ...chat_model import ChatModel
+from ...shared.chat_model import ChatModel
from ..assistant_tool_param import AssistantToolParam
from .runs.run_step_include import RunStepInclude
from ...shared_params.metadata import Metadata
src/openai/types/beta/assistant_create_params.py
@@ -5,7 +5,7 @@ from __future__ import annotations
from typing import List, Union, Iterable, Optional
from typing_extensions import Literal, Required, TypedDict
-from ..chat_model import ChatModel
+from ..shared.chat_model import ChatModel
from .assistant_tool_param import AssistantToolParam
from ..shared_params.metadata import Metadata
from .file_chunking_strategy_param import FileChunkingStrategyParam
src/openai/types/beta/thread_create_and_run_params.py
@@ -5,7 +5,7 @@ from __future__ import annotations
from typing import List, Union, Iterable, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict
-from ..chat_model import ChatModel
+from ..shared.chat_model import ChatModel
from .function_tool_param import FunctionToolParam
from .file_search_tool_param import FileSearchToolParam
from ..shared_params.metadata import Metadata
src/openai/types/chat/completion_create_params.py
@@ -5,7 +5,7 @@ from __future__ import annotations
from typing import Dict, List, Union, Iterable, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict
-from ..chat_model import ChatModel
+from ..shared.chat_model import ChatModel
from ..shared_params.metadata import Metadata
from .chat_completion_modality import ChatCompletionModality
from .chat_completion_tool_param import ChatCompletionToolParam
src/openai/types/__init__.py
@@ -7,6 +7,7 @@ from .image import Image as Image
from .model import Model as Model
from .shared import (
Metadata as Metadata,
+ ChatModel as ChatModel,
ErrorObject as ErrorObject,
FunctionDefinition as FunctionDefinition,
FunctionParameters as FunctionParameters,
@@ -16,7 +17,6 @@ from .shared import (
)
from .upload import Upload as Upload
from .embedding import Embedding as Embedding
-from .chat_model import ChatModel as ChatModel
from .completion import Completion as Completion
from .moderation import Moderation as Moderation
from .audio_model import AudioModel as AudioModel
src/openai/types/chat_model.py
@@ -1,49 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing_extensions import Literal, TypeAlias
+
+from .shared import chat_model
__all__ = ["ChatModel"]
-ChatModel: TypeAlias = Literal[
- "o3-mini",
- "o3-mini-2025-01-31",
- "o1",
- "o1-2024-12-17",
- "o1-preview",
- "o1-preview-2024-09-12",
- "o1-mini",
- "o1-mini-2024-09-12",
- "gpt-4.5-preview",
- "gpt-4.5-preview-2025-02-27",
- "gpt-4o",
- "gpt-4o-2024-11-20",
- "gpt-4o-2024-08-06",
- "gpt-4o-2024-05-13",
- "gpt-4o-audio-preview",
- "gpt-4o-audio-preview-2024-10-01",
- "gpt-4o-audio-preview-2024-12-17",
- "gpt-4o-mini-audio-preview",
- "gpt-4o-mini-audio-preview-2024-12-17",
- "chatgpt-4o-latest",
- "gpt-4o-mini",
- "gpt-4o-mini-2024-07-18",
- "gpt-4-turbo",
- "gpt-4-turbo-2024-04-09",
- "gpt-4-0125-preview",
- "gpt-4-turbo-preview",
- "gpt-4-1106-preview",
- "gpt-4-vision-preview",
- "gpt-4",
- "gpt-4-0314",
- "gpt-4-0613",
- "gpt-4-32k",
- "gpt-4-32k-0314",
- "gpt-4-32k-0613",
- "gpt-3.5-turbo",
- "gpt-3.5-turbo-16k",
- "gpt-3.5-turbo-0301",
- "gpt-3.5-turbo-0613",
- "gpt-3.5-turbo-1106",
- "gpt-3.5-turbo-0125",
- "gpt-3.5-turbo-16k-0613",
-]
+ChatModel = chat_model.ChatModel
api.md
@@ -2,6 +2,7 @@
```python
from openai.types import (
+ ChatModel,
ErrorObject,
FunctionDefinition,
FunctionParameters,
@@ -222,9 +223,9 @@ Types:
from openai.types.fine_tuning import (
FineTuningJob,
FineTuningJobEvent,
- FineTuningJobIntegration,
FineTuningJobWandbIntegration,
FineTuningJobWandbIntegrationObject,
+ FineTuningJobIntegration,
)
```