Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a646067

Browse filesBrowse files
chore(api): API spec cleanup
1 parent b75f409 commit a646067
Copy full SHA for a646067

File tree

2 files changed

+16
-8
lines changed
Filter options

2 files changed

+16
-8
lines changed

‎src/openai/lib/streaming/responses/_events.py

Copy file name to clipboardExpand all lines: src/openai/lib/streaming/responses/_events.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
ResponseFileSearchCallSearchingEvent,
3333
ResponseWebSearchCallInProgressEvent,
3434
ResponseFileSearchCallInProgressEvent,
35+
ResponseReasoningSummaryPartDoneEvent,
36+
ResponseReasoningSummaryTextDoneEvent,
3537
ResponseFunctionCallArgumentsDoneEvent,
38+
ResponseReasoningSummaryPartAddedEvent,
39+
ResponseReasoningSummaryTextDeltaEvent,
3640
ResponseFunctionCallArgumentsDeltaEvent as RawResponseFunctionCallArgumentsDeltaEvent,
3741
ResponseCodeInterpreterCallCodeDoneEvent,
3842
ResponseCodeInterpreterCallCodeDeltaEvent,
@@ -101,6 +105,10 @@ class ResponseCompletedEvent(RawResponseCompletedEvent, GenericModel, Generic[Te
101105
ResponseWebSearchCallCompletedEvent,
102106
ResponseWebSearchCallInProgressEvent,
103107
ResponseWebSearchCallSearchingEvent,
108+
ResponseReasoningSummaryPartAddedEvent,
109+
ResponseReasoningSummaryPartDoneEvent,
110+
ResponseReasoningSummaryTextDeltaEvent,
111+
ResponseReasoningSummaryTextDoneEvent,
104112
],
105113
PropertyInfo(discriminator="type"),
106114
]

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

Copy file name to clipboardExpand all lines: src/openai/resources/beta/threads/threads.py
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ def create_and_run_poll(
741741
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
742742
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
743743
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
744-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
744+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
745745
top_p: Optional[float] | NotGiven = NOT_GIVEN,
746746
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
747747
poll_interval_ms: int | NotGiven = NOT_GIVEN,
@@ -797,7 +797,7 @@ def create_and_run_stream(
797797
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
798798
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
799799
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
800-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
800+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
801801
top_p: Optional[float] | NotGiven = NOT_GIVEN,
802802
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
803803
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -826,7 +826,7 @@ def create_and_run_stream(
826826
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
827827
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
828828
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
829-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
829+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
830830
top_p: Optional[float] | NotGiven = NOT_GIVEN,
831831
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
832832
event_handler: AssistantEventHandlerT,
@@ -855,7 +855,7 @@ def create_and_run_stream(
855855
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
856856
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
857857
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
858-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
858+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
859859
top_p: Optional[float] | NotGiven = NOT_GIVEN,
860860
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
861861
event_handler: AssistantEventHandlerT | None = None,
@@ -1590,7 +1590,7 @@ async def create_and_run_poll(
15901590
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
15911591
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
15921592
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
1593-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
1593+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
15941594
top_p: Optional[float] | NotGiven = NOT_GIVEN,
15951595
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
15961596
poll_interval_ms: int | NotGiven = NOT_GIVEN,
@@ -1648,7 +1648,7 @@ def create_and_run_stream(
16481648
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
16491649
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
16501650
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
1651-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
1651+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
16521652
top_p: Optional[float] | NotGiven = NOT_GIVEN,
16531653
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
16541654
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1677,7 +1677,7 @@ def create_and_run_stream(
16771677
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
16781678
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
16791679
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
1680-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
1680+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
16811681
top_p: Optional[float] | NotGiven = NOT_GIVEN,
16821682
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
16831683
event_handler: AsyncAssistantEventHandlerT,
@@ -1706,7 +1706,7 @@ def create_and_run_stream(
17061706
thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
17071707
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
17081708
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
1709-
tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN,
1709+
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
17101710
top_p: Optional[float] | NotGiven = NOT_GIVEN,
17111711
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
17121712
event_handler: AsyncAssistantEventHandlerT | None = None,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.