11import json
2- from typing import Iterable , List , Literal , Optional , Union
2+ from typing import Iterable , List , Literal , Optional , Type , Union
33from portkey_ai ._vendor .openai ._streaming import AsyncStream , Stream
44from portkey_ai ._vendor .openai .lib ._parsing ._responses import TextFormatT
55from portkey_ai ._vendor .openai .lib .streaming .responses ._responses import (
@@ -387,7 +387,7 @@ def stream(
387387 self ,
388388 * ,
389389 response_id : str ,
390- text_format : Union [type [TextFormatT ], Omit ] = omit ,
390+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
391391 starting_after : Union [int , Omit ] = omit ,
392392 tools : Union [Iterable [ParseableToolParam ], Omit ] = omit ,
393393 ** kwargs ,
@@ -404,7 +404,7 @@ def stream(
404404 context_management : Union [
405405 Optional [Iterable [response_create_params .ContextManagement ]], Omit
406406 ] = omit ,
407- text_format : Union [type [TextFormatT ], Omit ] = omit ,
407+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
408408 tools : Union [Iterable [ParseableToolParam ], Omit ] = omit ,
409409 conversation : Union [Optional [response_create_params .Conversation ], Omit ] = omit ,
410410 include : Union [Optional [List [ResponseIncludable ]], Omit ] = omit ,
@@ -449,7 +449,7 @@ def stream(
449449 context_management : Union [
450450 Optional [Iterable [response_create_params .ContextManagement ]], Omit
451451 ] = omit ,
452- text_format : Union [type [TextFormatT ], Omit ] = omit ,
452+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
453453 tools : Union [Iterable [ParseableToolParam ], Omit ] = omit ,
454454 conversation : Union [Optional [response_create_params .Conversation ], Omit ] = omit ,
455455 include : Union [Optional [List [ResponseIncludable ]], Omit ] = omit ,
@@ -528,7 +528,7 @@ def stream(
528528 def parse (
529529 self ,
530530 * ,
531- text_format : Union [type [TextFormatT ], Omit ] = omit , # type: ignore[type-arg]
531+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
532532 background : Union [Optional [bool ], Omit ] = omit ,
533533 context_management : Union [
534534 Optional [Iterable [response_create_params .ContextManagement ]], Omit
@@ -1182,7 +1182,7 @@ def stream(
11821182 self ,
11831183 * ,
11841184 response_id : str ,
1185- text_format : Union [type [TextFormatT ], Omit ] = omit , # type: ignore[type-arg]
1185+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
11861186 starting_after : Union [int , Omit ] = omit ,
11871187 tools : Union [Iterable [ParseableToolParam ], Omit ] = omit ,
11881188 ** kwargs ,
@@ -1199,7 +1199,7 @@ def stream(
11991199 context_management : Union [
12001200 Optional [Iterable [response_create_params .ContextManagement ]], Omit
12011201 ] = omit ,
1202- text_format : Union [type [TextFormatT ], Omit ] = omit , # type: ignore[type-arg]
1202+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
12031203 tools : Union [Iterable [ParseableToolParam ], Omit ] = omit ,
12041204 conversation : Union [Optional [response_create_params .Conversation ], Omit ] = omit ,
12051205 include : Union [Optional [List [ResponseIncludable ]], Omit ] = omit ,
@@ -1244,7 +1244,7 @@ def stream(
12441244 context_management : Union [
12451245 Optional [Iterable [response_create_params .ContextManagement ]], Omit
12461246 ] = omit ,
1247- text_format : Union [type [TextFormatT ], Omit ] = omit , # type: ignore[type-arg]
1247+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
12481248 tools : Union [Iterable [ParseableToolParam ], Omit ] = omit ,
12491249 conversation : Union [Optional [response_create_params .Conversation ], Omit ] = omit ,
12501250 include : Union [Optional [List [ResponseIncludable ]], Omit ] = omit ,
@@ -1330,7 +1330,7 @@ async def parse(
13301330 conversation : Union [Optional [response_create_params .Conversation ], Omit ] = omit ,
13311331 input : Union [str , ResponseInputParam , Omit ] = omit ,
13321332 model : Union [ResponsesModel , Omit ] = omit ,
1333- text_format : Union [type [TextFormatT ], Omit ] = omit , # type: ignore[type-arg]
1333+ text_format : Union [Type [TextFormatT ], Omit ] = omit ,
13341334 tools : Union [Iterable [ParseableToolParam ], Omit ] = omit ,
13351335 include : Union [Optional [List [ResponseIncludable ]], Omit ] = omit ,
13361336 instructions : Union [Optional [str ], Omit ] = omit ,
0 commit comments