Skip to content

Commit 9d166d7

Browse files
chore: deprecate Assistants API
1 parent f78fb86 commit 9d166d7

File tree

17 files changed

+2164
-1826
lines changed

17 files changed

+2164
-1826
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fc64d7c2c8f51f750813375356c3f3fdfc7fc1b1b34f19c20a5410279d445d37.yml
33
openapi_spec_hash: 618285fc70199ee32b9ebe4bf72f7e4c
4-
config_hash: 535b6e5f26a295d609b259c8cb8f656c
4+
config_hash: 3b590818075ca4b54949578b97494525

examples/assistant.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/assistant_stream.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

examples/assistant_stream_helpers.py

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/openai/_utils/_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _transform_recursive(
212212
return data
213213

214214
if isinstance(data, pydantic.BaseModel):
215-
return model_dump(data, exclude_unset=True, mode="json", exclude=getattr(data, '__api_exclude__', None))
215+
return model_dump(data, exclude_unset=True, mode="json", exclude=getattr(data, "__api_exclude__", None))
216216

217217
annotated_type = _get_annotated_type(annotation)
218218
if annotated_type is None:

src/openai/lib/_parsing/_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def parse_response(
109109
or output.type == "code_interpreter_call"
110110
or output.type == "local_shell_call"
111111
or output.type == "mcp_list_tools"
112-
or output.type == 'exec'
112+
or output.type == "exec"
113113
):
114114
output_list.append(output)
115115
elif TYPE_CHECKING: # type: ignore

0 commit comments

Comments
 (0)