Skip to content

Commit 530f9b8

Browse files
chore: move ChatModel type to shared (#2167)
1 parent dfc4cfa commit 530f9b8

File tree

15 files changed

+116
-54
lines changed

15 files changed

+116
-54
lines changed

api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
```python
44
from openai.types import (
5+
ChatModel,
56
ErrorObject,
67
FunctionDefinition,
78
FunctionParameters,
@@ -222,9 +223,9 @@ Types:
222223
from openai.types.fine_tuning import (
223224
FineTuningJob,
224225
FineTuningJobEvent,
225-
FineTuningJobIntegration,
226226
FineTuningJobWandbIntegration,
227227
FineTuningJobWandbIntegrationObject,
228+
FineTuningJobIntegration,
228229
)
229230
```
230231

src/openai/resources/beta/assistants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
assistant_update_params,
2424
)
2525
from ..._base_client import AsyncPaginator, make_request_options
26-
from ...types.chat_model import ChatModel
2726
from ...types.beta.assistant import Assistant
27+
from ...types.shared.chat_model import ChatModel
2828
from ...types.beta.assistant_deleted import AssistantDeleted
2929
from ...types.shared_params.metadata import Metadata
3030
from ...types.beta.assistant_tool_param import AssistantToolParam

src/openai/resources/beta/threads/runs/runs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
AsyncAssistantEventHandlerT,
4040
AsyncAssistantStreamManager,
4141
)
42-
from .....types.chat_model import ChatModel
4342
from .....types.beta.threads import (
4443
run_list_params,
4544
run_create_params,
4645
run_update_params,
4746
run_submit_tool_outputs_params,
4847
)
4948
from .....types.beta.threads.run import Run
49+
from .....types.shared.chat_model import ChatModel
5050
from .....types.shared_params.metadata import Metadata
5151
from .....types.beta.assistant_tool_param import AssistantToolParam
5252
from .....types.beta.assistant_stream_event import AssistantStreamEvent

src/openai/resources/beta/threads/threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
AsyncAssistantEventHandlerT,
5050
AsyncAssistantStreamManager,
5151
)
52-
from ....types.chat_model import ChatModel
5352
from ....types.beta.thread import Thread
5453
from ....types.beta.threads.run import Run
54+
from ....types.shared.chat_model import ChatModel
5555
from ....types.beta.thread_deleted import ThreadDeleted
5656
from ....types.shared_params.metadata import Metadata
5757
from ....types.beta.assistant_stream_event import AssistantStreamEvent

src/openai/resources/chat/completions/completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
completion_update_params,
3838
)
3939
from ...._base_client import AsyncPaginator, make_request_options
40-
from ....types.chat_model import ChatModel
40+
from ....types.shared.chat_model import ChatModel
4141
from ....types.chat.chat_completion import ChatCompletion
4242
from ....types.shared_params.metadata import Metadata
4343
from ....types.chat.chat_completion_chunk import ChatCompletionChunk

src/openai/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from .model import Model as Model
88
from .shared import (
99
Metadata as Metadata,
10+
ChatModel as ChatModel,
1011
ErrorObject as ErrorObject,
1112
FunctionDefinition as FunctionDefinition,
1213
FunctionParameters as FunctionParameters,
@@ -16,7 +17,6 @@
1617
)
1718
from .upload import Upload as Upload
1819
from .embedding import Embedding as Embedding
19-
from .chat_model import ChatModel as ChatModel
2020
from .completion import Completion as Completion
2121
from .moderation import Moderation as Moderation
2222
from .audio_model import AudioModel as AudioModel

src/openai/types/beta/assistant_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import List, Union, Iterable, Optional
66
from typing_extensions import Literal, Required, TypedDict
77

8-
from ..chat_model import ChatModel
8+
from ..shared.chat_model import ChatModel
99
from .assistant_tool_param import AssistantToolParam
1010
from ..shared_params.metadata import Metadata
1111
from .file_chunking_strategy_param import FileChunkingStrategyParam

src/openai/types/beta/thread_create_and_run_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import List, Union, Iterable, Optional
66
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8-
from ..chat_model import ChatModel
8+
from ..shared.chat_model import ChatModel
99
from .function_tool_param import FunctionToolParam
1010
from .file_search_tool_param import FileSearchToolParam
1111
from ..shared_params.metadata import Metadata

src/openai/types/beta/threads/run_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import List, Union, Iterable, Optional
66
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8-
from ...chat_model import ChatModel
8+
from ...shared.chat_model import ChatModel
99
from ..assistant_tool_param import AssistantToolParam
1010
from .runs.run_step_include import RunStepInclude
1111
from ...shared_params.metadata import Metadata

src/openai/types/chat/completion_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Dict, List, Union, Iterable, Optional
66
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8-
from ..chat_model import ChatModel
8+
from ..shared.chat_model import ChatModel
99
from ..shared_params.metadata import Metadata
1010
from .chat_completion_modality import ChatCompletionModality
1111
from .chat_completion_tool_param import ChatCompletionToolParam

0 commit comments

Comments
 (0)