Skip to content

Commit 3e2ca57

Browse files
chore(api): mark some methods as deprecated
1 parent 9d166d7 commit 3e2ca57

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,7 @@ def submit_tool_outputs(
13131313
"""
13141314
...
13151315

1316+
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
13161317
@required_args(["thread_id", "tool_outputs"], ["thread_id", "stream", "tool_outputs"])
13171318
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
13181319
def submit_tool_outputs(
@@ -1967,6 +1968,7 @@ async def create(
19671968
"""
19681969
...
19691970

1971+
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
19701972
@required_args(["assistant_id"], ["assistant_id", "stream"])
19711973
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
19721974
async def create(
@@ -2744,6 +2746,7 @@ async def submit_tool_outputs(
27442746
"""
27452747
...
27462748

2749+
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
27472750
@required_args(["thread_id", "tool_outputs"], ["thread_id", "stream", "tool_outputs"])
27482751
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
27492752
async def submit_tool_outputs(

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ def create_and_run(
673673
"""
674674
...
675675

676+
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
676677
@required_args(["assistant_id"], ["assistant_id", "stream"])
677678
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
678679
def create_and_run(
@@ -1530,6 +1531,7 @@ async def create_and_run(
15301531
"""
15311532
...
15321533

1534+
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
15331535
@required_args(["assistant_id"], ["assistant_id", "stream"])
15341536
@typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API")
15351537
async def create_and_run(

0 commit comments

Comments
 (0)