Skip to content

Commit e680715

Browse files
chore: move ChatModel type to shared (#2167)
1 parent 1985b7d commit e680715

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,
@@ -221,9 +222,9 @@ Types:
221222
from openai.types.fine_tuning import (
222223
FineTuningJob,
223224
FineTuningJobEvent,
224-
FineTuningJobIntegration,
225225
FineTuningJobWandbIntegration,
226226
FineTuningJobWandbIntegrationObject,
227+
FineTuningJobIntegration,
227228
)
228229
```
229230

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
@@ -28,14 +28,14 @@
2828
from ....._streaming import Stream, AsyncStream
2929
from .....pagination import SyncCursorPage, AsyncCursorPage
3030
from ....._base_client import AsyncPaginator, make_request_options
31-
from .....types.chat_model import ChatModel
3231
from .....types.beta.threads import (
3332
run_list_params,
3433
run_create_params,
3534
run_update_params,
3635
run_submit_tool_outputs_params,
3736
)
3837
from .....types.beta.threads.run import Run
38+
from .....types.shared.chat_model import ChatModel
3939
from .....types.shared_params.metadata import Metadata
4040
from .....types.beta.assistant_tool_param import AssistantToolParam
4141
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
@@ -40,9 +40,9 @@
4040
thread_create_and_run_params,
4141
)
4242
from ...._base_client import make_request_options
43-
from ....types.chat_model import ChatModel
4443
from ....types.beta.thread import Thread
4544
from ....types.beta.threads.run import Run
45+
from ....types.shared.chat_model import ChatModel
4646
from ....types.beta.thread_deleted import ThreadDeleted
4747
from ....types.shared_params.metadata import Metadata
4848
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
@@ -35,7 +35,7 @@
3535
completion_update_params,
3636
)
3737
from ...._base_client import AsyncPaginator, make_request_options
38-
from ....types.chat_model import ChatModel
38+
from ....types.shared.chat_model import ChatModel
3939
from ....types.chat.chat_completion import ChatCompletion
4040
from ....types.shared_params.metadata import Metadata
4141
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)