Skip to content

Commit 80f02f9

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
fix(types): correctly mark stream discriminator as optional (#1706)
1 parent b0e3256 commit 80f02f9

5 files changed

+5
-5
lines changed

src/openai/types/beta/thread_create_and_run_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class TruncationStrategy(TypedDict, total=False):
332332
"""
333333

334334

335-
class ThreadCreateAndRunParamsNonStreaming(ThreadCreateAndRunParamsBase):
335+
class ThreadCreateAndRunParamsNonStreaming(ThreadCreateAndRunParamsBase, total=False):
336336
stream: Optional[Literal[False]]
337337
"""
338338
If `true`, returns a stream of events that happen during the Run as server-sent

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class TruncationStrategy(TypedDict, total=False):
225225
"""
226226

227227

228-
class RunCreateParamsNonStreaming(RunCreateParamsBase):
228+
class RunCreateParamsNonStreaming(RunCreateParamsBase, total=False):
229229
stream: Optional[Literal[False]]
230230
"""
231231
If `true`, returns a stream of events that happen during the Run as server-sent

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ToolOutput(TypedDict, total=False):
3131
"""
3232

3333

34-
class RunSubmitToolOutputsParamsNonStreaming(RunSubmitToolOutputsParamsBase):
34+
class RunSubmitToolOutputsParamsNonStreaming(RunSubmitToolOutputsParamsBase, total=False):
3535
stream: Optional[Literal[False]]
3636
"""
3737
If `true`, returns a stream of events that happen during the Run as server-sent

src/openai/types/chat/completion_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class Function(TypedDict, total=False):
262262
ResponseFormat: TypeAlias = Union[ResponseFormatText, ResponseFormatJSONObject, ResponseFormatJSONSchema]
263263

264264

265-
class CompletionCreateParamsNonStreaming(CompletionCreateParamsBase):
265+
class CompletionCreateParamsNonStreaming(CompletionCreateParamsBase, total=False):
266266
stream: Optional[Literal[False]]
267267
"""If set, partial message deltas will be sent, like in ChatGPT.
268268

src/openai/types/completion_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class CompletionCreateParamsBase(TypedDict, total=False):
160160
"""
161161

162162

163-
class CompletionCreateParamsNonStreaming(CompletionCreateParamsBase):
163+
class CompletionCreateParamsNonStreaming(CompletionCreateParamsBase, total=False):
164164
stream: Optional[Literal[False]]
165165
"""Whether to stream back partial progress.
166166

0 commit comments

Comments
 (0)