openrouter 0.0.17__py3-none-any.whl → 0.0.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. openrouter/_version.py +2 -2
  2. openrouter/chat.py +58 -0
  3. openrouter/components/__init__.py +171 -30
  4. openrouter/components/_schema0.py +3 -2
  5. openrouter/components/_schema3.py +1 -0
  6. openrouter/components/chatgenerationparams.py +184 -14
  7. openrouter/components/chatgenerationtokenusage.py +3 -0
  8. openrouter/components/chatmessagetokenlogprob.py +4 -4
  9. openrouter/components/openresponseseasyinputmessage.py +93 -20
  10. openrouter/components/openresponsesinput.py +2 -2
  11. openrouter/components/openresponsesinputmessageitem.py +87 -14
  12. openrouter/components/openresponsesnonstreamingresponse.py +20 -9
  13. openrouter/components/openresponsesreasoning.py +1 -0
  14. openrouter/components/openresponsesrequest.py +85 -32
  15. openrouter/components/percentilelatencycutoffs.py +71 -0
  16. openrouter/components/percentilestats.py +34 -0
  17. openrouter/components/percentilethroughputcutoffs.py +71 -0
  18. openrouter/components/preferredmaxlatency.py +21 -0
  19. openrouter/components/preferredminthroughput.py +22 -0
  20. openrouter/components/providername.py +3 -2
  21. openrouter/components/providerpreferences.py +13 -33
  22. openrouter/components/publicendpoint.py +11 -0
  23. openrouter/components/responseinputvideo.py +26 -0
  24. openrouter/components/responseoutputtext.py +36 -1
  25. openrouter/components/responsesoutputitem.py +1 -1
  26. openrouter/components/responsesoutputitemreasoning.py +43 -3
  27. openrouter/components/responsesoutputmodality.py +14 -0
  28. openrouter/operations/getgeneration.py +6 -0
  29. openrouter/responses.py +114 -0
  30. {openrouter-0.0.17.dist-info → openrouter-0.0.18.dist-info}/METADATA +1 -1
  31. {openrouter-0.0.17.dist-info → openrouter-0.0.18.dist-info}/RECORD +34 -27
  32. {openrouter-0.0.17.dist-info → openrouter-0.0.18.dist-info}/WHEEL +0 -0
  33. {openrouter-0.0.17.dist-info → openrouter-0.0.18.dist-info}/licenses/LICENSE +0 -0
  34. {openrouter-0.0.17.dist-info → openrouter-0.0.18.dist-info}/top_level.txt +0 -0
@@ -38,8 +38,12 @@ if TYPE_CHECKING:
38
38
  from .chatgenerationparams import (
39
39
  ChatGenerationParams,
40
40
  ChatGenerationParamsDataCollection,
41
+ ChatGenerationParamsImageConfig,
42
+ ChatGenerationParamsImageConfigTypedDict,
41
43
  ChatGenerationParamsMaxPrice,
42
44
  ChatGenerationParamsMaxPriceTypedDict,
45
+ ChatGenerationParamsPluginAutoRouter,
46
+ ChatGenerationParamsPluginAutoRouterTypedDict,
43
47
  ChatGenerationParamsPluginFileParser,
44
48
  ChatGenerationParamsPluginFileParserTypedDict,
45
49
  ChatGenerationParamsPluginModeration,
@@ -50,6 +54,14 @@ if TYPE_CHECKING:
50
54
  ChatGenerationParamsPluginUnionTypedDict,
51
55
  ChatGenerationParamsPluginWeb,
52
56
  ChatGenerationParamsPluginWebTypedDict,
57
+ ChatGenerationParamsPreferredMaxLatency,
58
+ ChatGenerationParamsPreferredMaxLatencyTypedDict,
59
+ ChatGenerationParamsPreferredMaxLatencyUnion,
60
+ ChatGenerationParamsPreferredMaxLatencyUnionTypedDict,
61
+ ChatGenerationParamsPreferredMinThroughput,
62
+ ChatGenerationParamsPreferredMinThroughputTypedDict,
63
+ ChatGenerationParamsPreferredMinThroughputUnion,
64
+ ChatGenerationParamsPreferredMinThroughputUnionTypedDict,
53
65
  ChatGenerationParamsProvider,
54
66
  ChatGenerationParamsProviderTypedDict,
55
67
  ChatGenerationParamsResponseFormatJSONObject,
@@ -67,6 +79,7 @@ if TYPE_CHECKING:
67
79
  DebugTypedDict,
68
80
  Effort,
69
81
  Engine,
82
+ Modality,
70
83
  Pdf,
71
84
  PdfEngine,
72
85
  PdfTypedDict,
@@ -123,9 +136,9 @@ if TYPE_CHECKING:
123
136
  )
124
137
  from .chatmessagetokenlogprob import (
125
138
  ChatMessageTokenLogprob,
139
+ ChatMessageTokenLogprobTopLogprob,
140
+ ChatMessageTokenLogprobTopLogprobTypedDict,
126
141
  ChatMessageTokenLogprobTypedDict,
127
- TopLogprob,
128
- TopLogprobTypedDict,
129
142
  )
130
143
  from .chatmessagetokenlogprobs import (
131
144
  ChatMessageTokenLogprobs,
@@ -333,17 +346,21 @@ if TYPE_CHECKING:
333
346
  from .openairesponsestruncation import OpenAIResponsesTruncation
334
347
  from .openresponseseasyinputmessage import (
335
348
  OpenResponsesEasyInputMessage,
336
- OpenResponsesEasyInputMessageContent1,
337
- OpenResponsesEasyInputMessageContent1TypedDict,
338
- OpenResponsesEasyInputMessageContent2,
339
- OpenResponsesEasyInputMessageContent2TypedDict,
349
+ OpenResponsesEasyInputMessageContentInputImage,
350
+ OpenResponsesEasyInputMessageContentInputImageTypedDict,
351
+ OpenResponsesEasyInputMessageContentType,
352
+ OpenResponsesEasyInputMessageContentUnion1,
353
+ OpenResponsesEasyInputMessageContentUnion1TypedDict,
354
+ OpenResponsesEasyInputMessageContentUnion2,
355
+ OpenResponsesEasyInputMessageContentUnion2TypedDict,
356
+ OpenResponsesEasyInputMessageDetail,
340
357
  OpenResponsesEasyInputMessageRoleAssistant,
341
358
  OpenResponsesEasyInputMessageRoleDeveloper,
342
359
  OpenResponsesEasyInputMessageRoleSystem,
343
360
  OpenResponsesEasyInputMessageRoleUnion,
344
361
  OpenResponsesEasyInputMessageRoleUnionTypedDict,
345
362
  OpenResponsesEasyInputMessageRoleUser,
346
- OpenResponsesEasyInputMessageType,
363
+ OpenResponsesEasyInputMessageTypeMessage,
347
364
  OpenResponsesEasyInputMessageTypedDict,
348
365
  )
349
366
  from .openresponseserrorevent import (
@@ -389,14 +406,18 @@ if TYPE_CHECKING:
389
406
  )
390
407
  from .openresponsesinputmessageitem import (
391
408
  OpenResponsesInputMessageItem,
392
- OpenResponsesInputMessageItemContent,
393
- OpenResponsesInputMessageItemContentTypedDict,
409
+ OpenResponsesInputMessageItemContentInputImage,
410
+ OpenResponsesInputMessageItemContentInputImageTypedDict,
411
+ OpenResponsesInputMessageItemContentType,
412
+ OpenResponsesInputMessageItemContentUnion,
413
+ OpenResponsesInputMessageItemContentUnionTypedDict,
414
+ OpenResponsesInputMessageItemDetail,
394
415
  OpenResponsesInputMessageItemRoleDeveloper,
395
416
  OpenResponsesInputMessageItemRoleSystem,
396
417
  OpenResponsesInputMessageItemRoleUnion,
397
418
  OpenResponsesInputMessageItemRoleUnionTypedDict,
398
419
  OpenResponsesInputMessageItemRoleUser,
399
- OpenResponsesInputMessageItemType,
420
+ OpenResponsesInputMessageItemTypeMessage,
400
421
  OpenResponsesInputMessageItemTypedDict,
401
422
  )
402
423
  from .openresponseslogprobs import (
@@ -454,6 +475,7 @@ if TYPE_CHECKING:
454
475
  OpenResponsesReasoningSummaryTextDoneEventTypedDict,
455
476
  )
456
477
  from .openresponsesrequest import (
478
+ IDAutoRouter,
457
479
  IDFileParser,
458
480
  IDModeration,
459
481
  IDResponseHealing,
@@ -461,12 +483,16 @@ if TYPE_CHECKING:
461
483
  OpenResponsesRequest,
462
484
  OpenResponsesRequestIgnore,
463
485
  OpenResponsesRequestIgnoreTypedDict,
486
+ OpenResponsesRequestImageConfig,
487
+ OpenResponsesRequestImageConfigTypedDict,
464
488
  OpenResponsesRequestMaxPrice,
465
489
  OpenResponsesRequestMaxPriceTypedDict,
466
490
  OpenResponsesRequestOnly,
467
491
  OpenResponsesRequestOnlyTypedDict,
468
492
  OpenResponsesRequestOrder,
469
493
  OpenResponsesRequestOrderTypedDict,
494
+ OpenResponsesRequestPluginAutoRouter,
495
+ OpenResponsesRequestPluginAutoRouterTypedDict,
470
496
  OpenResponsesRequestPluginFileParser,
471
497
  OpenResponsesRequestPluginFileParserTypedDict,
472
498
  OpenResponsesRequestPluginModeration,
@@ -622,7 +648,21 @@ if TYPE_CHECKING:
622
648
  )
623
649
  from .pdfparserengine import PDFParserEngine
624
650
  from .pdfparseroptions import PDFParserOptions, PDFParserOptionsTypedDict
651
+ from .percentilelatencycutoffs import (
652
+ PercentileLatencyCutoffs,
653
+ PercentileLatencyCutoffsTypedDict,
654
+ )
655
+ from .percentilestats import PercentileStats, PercentileStatsTypedDict
656
+ from .percentilethroughputcutoffs import (
657
+ PercentileThroughputCutoffs,
658
+ PercentileThroughputCutoffsTypedDict,
659
+ )
625
660
  from .perrequestlimits import PerRequestLimits, PerRequestLimitsTypedDict
661
+ from .preferredmaxlatency import PreferredMaxLatency, PreferredMaxLatencyTypedDict
662
+ from .preferredminthroughput import (
663
+ PreferredMinThroughput,
664
+ PreferredMinThroughputTypedDict,
665
+ )
626
666
  from .providername import ProviderName
627
667
  from .provideroverloadedresponseerrordata import (
628
668
  ProviderOverloadedResponseErrorData,
@@ -717,8 +757,17 @@ if TYPE_CHECKING:
717
757
  ResponseInputTextType,
718
758
  ResponseInputTextTypedDict,
719
759
  )
760
+ from .responseinputvideo import (
761
+ ResponseInputVideo,
762
+ ResponseInputVideoType,
763
+ ResponseInputVideoTypedDict,
764
+ )
720
765
  from .responseoutputtext import (
766
+ Logprob,
767
+ LogprobTypedDict,
721
768
  ResponseOutputText,
769
+ ResponseOutputTextTopLogprob,
770
+ ResponseOutputTextTopLogprobTypedDict,
722
771
  ResponseOutputTextType,
723
772
  ResponseOutputTextTypedDict,
724
773
  )
@@ -765,6 +814,7 @@ if TYPE_CHECKING:
765
814
  )
766
815
  from .responsesoutputitemreasoning import (
767
816
  ResponsesOutputItemReasoning,
817
+ ResponsesOutputItemReasoningFormat,
768
818
  ResponsesOutputItemReasoningStatusCompleted,
769
819
  ResponsesOutputItemReasoningStatusInProgress,
770
820
  ResponsesOutputItemReasoningStatusIncomplete,
@@ -786,6 +836,7 @@ if TYPE_CHECKING:
786
836
  ResponsesOutputMessageType,
787
837
  ResponsesOutputMessageTypedDict,
788
838
  )
839
+ from .responsesoutputmodality import ResponsesOutputModality
789
840
  from .responsessearchcontextsize import ResponsesSearchContextSize
790
841
  from .responseswebsearchcalloutput import (
791
842
  ResponsesWebSearchCallOutput,
@@ -873,8 +924,12 @@ __all__ = [
873
924
  "ChatErrorErrorTypedDict",
874
925
  "ChatGenerationParams",
875
926
  "ChatGenerationParamsDataCollection",
927
+ "ChatGenerationParamsImageConfig",
928
+ "ChatGenerationParamsImageConfigTypedDict",
876
929
  "ChatGenerationParamsMaxPrice",
877
930
  "ChatGenerationParamsMaxPriceTypedDict",
931
+ "ChatGenerationParamsPluginAutoRouter",
932
+ "ChatGenerationParamsPluginAutoRouterTypedDict",
878
933
  "ChatGenerationParamsPluginFileParser",
879
934
  "ChatGenerationParamsPluginFileParserTypedDict",
880
935
  "ChatGenerationParamsPluginModeration",
@@ -885,6 +940,14 @@ __all__ = [
885
940
  "ChatGenerationParamsPluginUnionTypedDict",
886
941
  "ChatGenerationParamsPluginWeb",
887
942
  "ChatGenerationParamsPluginWebTypedDict",
943
+ "ChatGenerationParamsPreferredMaxLatency",
944
+ "ChatGenerationParamsPreferredMaxLatencyTypedDict",
945
+ "ChatGenerationParamsPreferredMaxLatencyUnion",
946
+ "ChatGenerationParamsPreferredMaxLatencyUnionTypedDict",
947
+ "ChatGenerationParamsPreferredMinThroughput",
948
+ "ChatGenerationParamsPreferredMinThroughputTypedDict",
949
+ "ChatGenerationParamsPreferredMinThroughputUnion",
950
+ "ChatGenerationParamsPreferredMinThroughputUnionTypedDict",
888
951
  "ChatGenerationParamsProvider",
889
952
  "ChatGenerationParamsProviderTypedDict",
890
953
  "ChatGenerationParamsResponseFormatJSONObject",
@@ -920,6 +983,8 @@ __all__ = [
920
983
  "ChatMessageContentItemVideoVideoURL",
921
984
  "ChatMessageContentItemVideoVideoURLTypedDict",
922
985
  "ChatMessageTokenLogprob",
986
+ "ChatMessageTokenLogprobTopLogprob",
987
+ "ChatMessageTokenLogprobTopLogprobTypedDict",
923
988
  "ChatMessageTokenLogprobTypedDict",
924
989
  "ChatMessageTokenLogprobs",
925
990
  "ChatMessageTokenLogprobsTypedDict",
@@ -996,6 +1061,7 @@ __all__ = [
996
1061
  "FilePathTypedDict",
997
1062
  "ForbiddenResponseErrorData",
998
1063
  "ForbiddenResponseErrorDataTypedDict",
1064
+ "IDAutoRouter",
999
1065
  "IDFileParser",
1000
1066
  "IDModeration",
1001
1067
  "IDResponseHealing",
@@ -1013,12 +1079,15 @@ __all__ = [
1013
1079
  "JSONSchemaConfigTypedDict",
1014
1080
  "ListEndpointsResponse",
1015
1081
  "ListEndpointsResponseTypedDict",
1082
+ "Logprob",
1083
+ "LogprobTypedDict",
1016
1084
  "Message",
1017
1085
  "MessageContent",
1018
1086
  "MessageContentTypedDict",
1019
1087
  "MessageDeveloper",
1020
1088
  "MessageDeveloperTypedDict",
1021
1089
  "MessageTypedDict",
1090
+ "Modality",
1022
1091
  "Model",
1023
1092
  "ModelArchitecture",
1024
1093
  "ModelArchitectureInstructType",
@@ -1100,17 +1169,21 @@ __all__ = [
1100
1169
  "OpenAIResponsesToolChoiceUnionTypedDict",
1101
1170
  "OpenAIResponsesTruncation",
1102
1171
  "OpenResponsesEasyInputMessage",
1103
- "OpenResponsesEasyInputMessageContent1",
1104
- "OpenResponsesEasyInputMessageContent1TypedDict",
1105
- "OpenResponsesEasyInputMessageContent2",
1106
- "OpenResponsesEasyInputMessageContent2TypedDict",
1172
+ "OpenResponsesEasyInputMessageContentInputImage",
1173
+ "OpenResponsesEasyInputMessageContentInputImageTypedDict",
1174
+ "OpenResponsesEasyInputMessageContentType",
1175
+ "OpenResponsesEasyInputMessageContentUnion1",
1176
+ "OpenResponsesEasyInputMessageContentUnion1TypedDict",
1177
+ "OpenResponsesEasyInputMessageContentUnion2",
1178
+ "OpenResponsesEasyInputMessageContentUnion2TypedDict",
1179
+ "OpenResponsesEasyInputMessageDetail",
1107
1180
  "OpenResponsesEasyInputMessageRoleAssistant",
1108
1181
  "OpenResponsesEasyInputMessageRoleDeveloper",
1109
1182
  "OpenResponsesEasyInputMessageRoleSystem",
1110
1183
  "OpenResponsesEasyInputMessageRoleUnion",
1111
1184
  "OpenResponsesEasyInputMessageRoleUnionTypedDict",
1112
1185
  "OpenResponsesEasyInputMessageRoleUser",
1113
- "OpenResponsesEasyInputMessageType",
1186
+ "OpenResponsesEasyInputMessageTypeMessage",
1114
1187
  "OpenResponsesEasyInputMessageTypedDict",
1115
1188
  "OpenResponsesErrorEvent",
1116
1189
  "OpenResponsesErrorEventType",
@@ -1137,14 +1210,18 @@ __all__ = [
1137
1210
  "OpenResponsesInput1",
1138
1211
  "OpenResponsesInput1TypedDict",
1139
1212
  "OpenResponsesInputMessageItem",
1140
- "OpenResponsesInputMessageItemContent",
1141
- "OpenResponsesInputMessageItemContentTypedDict",
1213
+ "OpenResponsesInputMessageItemContentInputImage",
1214
+ "OpenResponsesInputMessageItemContentInputImageTypedDict",
1215
+ "OpenResponsesInputMessageItemContentType",
1216
+ "OpenResponsesInputMessageItemContentUnion",
1217
+ "OpenResponsesInputMessageItemContentUnionTypedDict",
1218
+ "OpenResponsesInputMessageItemDetail",
1142
1219
  "OpenResponsesInputMessageItemRoleDeveloper",
1143
1220
  "OpenResponsesInputMessageItemRoleSystem",
1144
1221
  "OpenResponsesInputMessageItemRoleUnion",
1145
1222
  "OpenResponsesInputMessageItemRoleUnionTypedDict",
1146
1223
  "OpenResponsesInputMessageItemRoleUser",
1147
- "OpenResponsesInputMessageItemType",
1224
+ "OpenResponsesInputMessageItemTypeMessage",
1148
1225
  "OpenResponsesInputMessageItemTypedDict",
1149
1226
  "OpenResponsesInputTypedDict",
1150
1227
  "OpenResponsesLogProbs",
@@ -1185,12 +1262,16 @@ __all__ = [
1185
1262
  "OpenResponsesRequest",
1186
1263
  "OpenResponsesRequestIgnore",
1187
1264
  "OpenResponsesRequestIgnoreTypedDict",
1265
+ "OpenResponsesRequestImageConfig",
1266
+ "OpenResponsesRequestImageConfigTypedDict",
1188
1267
  "OpenResponsesRequestMaxPrice",
1189
1268
  "OpenResponsesRequestMaxPriceTypedDict",
1190
1269
  "OpenResponsesRequestOnly",
1191
1270
  "OpenResponsesRequestOnlyTypedDict",
1192
1271
  "OpenResponsesRequestOrder",
1193
1272
  "OpenResponsesRequestOrderTypedDict",
1273
+ "OpenResponsesRequestPluginAutoRouter",
1274
+ "OpenResponsesRequestPluginAutoRouterTypedDict",
1194
1275
  "OpenResponsesRequestPluginFileParser",
1195
1276
  "OpenResponsesRequestPluginFileParserTypedDict",
1196
1277
  "OpenResponsesRequestPluginModeration",
@@ -1305,6 +1386,16 @@ __all__ = [
1305
1386
  "PdfTypedDict",
1306
1387
  "PerRequestLimits",
1307
1388
  "PerRequestLimitsTypedDict",
1389
+ "PercentileLatencyCutoffs",
1390
+ "PercentileLatencyCutoffsTypedDict",
1391
+ "PercentileStats",
1392
+ "PercentileStatsTypedDict",
1393
+ "PercentileThroughputCutoffs",
1394
+ "PercentileThroughputCutoffsTypedDict",
1395
+ "PreferredMaxLatency",
1396
+ "PreferredMaxLatencyTypedDict",
1397
+ "PreferredMinThroughput",
1398
+ "PreferredMinThroughputTypedDict",
1308
1399
  "Pricing",
1309
1400
  "PricingTypedDict",
1310
1401
  "Prompt",
@@ -1379,7 +1470,12 @@ __all__ = [
1379
1470
  "ResponseInputText",
1380
1471
  "ResponseInputTextType",
1381
1472
  "ResponseInputTextTypedDict",
1473
+ "ResponseInputVideo",
1474
+ "ResponseInputVideoType",
1475
+ "ResponseInputVideoTypedDict",
1382
1476
  "ResponseOutputText",
1477
+ "ResponseOutputTextTopLogprob",
1478
+ "ResponseOutputTextTopLogprobTypedDict",
1383
1479
  "ResponseOutputTextType",
1384
1480
  "ResponseOutputTextTypedDict",
1385
1481
  "ResponseTextConfig",
@@ -1412,6 +1508,7 @@ __all__ = [
1412
1508
  "ResponsesOutputItemFunctionCallType",
1413
1509
  "ResponsesOutputItemFunctionCallTypedDict",
1414
1510
  "ResponsesOutputItemReasoning",
1511
+ "ResponsesOutputItemReasoningFormat",
1415
1512
  "ResponsesOutputItemReasoningStatusCompleted",
1416
1513
  "ResponsesOutputItemReasoningStatusInProgress",
1417
1514
  "ResponsesOutputItemReasoningStatusIncomplete",
@@ -1431,6 +1528,7 @@ __all__ = [
1431
1528
  "ResponsesOutputMessageStatusUnionTypedDict",
1432
1529
  "ResponsesOutputMessageType",
1433
1530
  "ResponsesOutputMessageTypedDict",
1531
+ "ResponsesOutputModality",
1434
1532
  "ResponsesSearchContextSize",
1435
1533
  "ResponsesWebSearchCallOutput",
1436
1534
  "ResponsesWebSearchCallOutputType",
@@ -1476,8 +1574,6 @@ __all__ = [
1476
1574
  "ToolResponseMessageContent",
1477
1575
  "ToolResponseMessageContentTypedDict",
1478
1576
  "ToolResponseMessageTypedDict",
1479
- "TopLogprob",
1480
- "TopLogprobTypedDict",
1481
1577
  "TopProviderInfo",
1482
1578
  "TopProviderInfoTypedDict",
1483
1579
  "Truncation",
@@ -1554,8 +1650,12 @@ _dynamic_imports: dict[str, str] = {
1554
1650
  "CodeTypedDict": ".chaterror",
1555
1651
  "ChatGenerationParams": ".chatgenerationparams",
1556
1652
  "ChatGenerationParamsDataCollection": ".chatgenerationparams",
1653
+ "ChatGenerationParamsImageConfig": ".chatgenerationparams",
1654
+ "ChatGenerationParamsImageConfigTypedDict": ".chatgenerationparams",
1557
1655
  "ChatGenerationParamsMaxPrice": ".chatgenerationparams",
1558
1656
  "ChatGenerationParamsMaxPriceTypedDict": ".chatgenerationparams",
1657
+ "ChatGenerationParamsPluginAutoRouter": ".chatgenerationparams",
1658
+ "ChatGenerationParamsPluginAutoRouterTypedDict": ".chatgenerationparams",
1559
1659
  "ChatGenerationParamsPluginFileParser": ".chatgenerationparams",
1560
1660
  "ChatGenerationParamsPluginFileParserTypedDict": ".chatgenerationparams",
1561
1661
  "ChatGenerationParamsPluginModeration": ".chatgenerationparams",
@@ -1566,6 +1666,14 @@ _dynamic_imports: dict[str, str] = {
1566
1666
  "ChatGenerationParamsPluginUnionTypedDict": ".chatgenerationparams",
1567
1667
  "ChatGenerationParamsPluginWeb": ".chatgenerationparams",
1568
1668
  "ChatGenerationParamsPluginWebTypedDict": ".chatgenerationparams",
1669
+ "ChatGenerationParamsPreferredMaxLatency": ".chatgenerationparams",
1670
+ "ChatGenerationParamsPreferredMaxLatencyTypedDict": ".chatgenerationparams",
1671
+ "ChatGenerationParamsPreferredMaxLatencyUnion": ".chatgenerationparams",
1672
+ "ChatGenerationParamsPreferredMaxLatencyUnionTypedDict": ".chatgenerationparams",
1673
+ "ChatGenerationParamsPreferredMinThroughput": ".chatgenerationparams",
1674
+ "ChatGenerationParamsPreferredMinThroughputTypedDict": ".chatgenerationparams",
1675
+ "ChatGenerationParamsPreferredMinThroughputUnion": ".chatgenerationparams",
1676
+ "ChatGenerationParamsPreferredMinThroughputUnionTypedDict": ".chatgenerationparams",
1569
1677
  "ChatGenerationParamsProvider": ".chatgenerationparams",
1570
1678
  "ChatGenerationParamsProviderTypedDict": ".chatgenerationparams",
1571
1679
  "ChatGenerationParamsResponseFormatJSONObject": ".chatgenerationparams",
@@ -1583,6 +1691,7 @@ _dynamic_imports: dict[str, str] = {
1583
1691
  "DebugTypedDict": ".chatgenerationparams",
1584
1692
  "Effort": ".chatgenerationparams",
1585
1693
  "Engine": ".chatgenerationparams",
1694
+ "Modality": ".chatgenerationparams",
1586
1695
  "Pdf": ".chatgenerationparams",
1587
1696
  "PdfEngine": ".chatgenerationparams",
1588
1697
  "PdfTypedDict": ".chatgenerationparams",
@@ -1623,9 +1732,9 @@ _dynamic_imports: dict[str, str] = {
1623
1732
  "VideoURL2": ".chatmessagecontentitemvideo",
1624
1733
  "VideoURL2TypedDict": ".chatmessagecontentitemvideo",
1625
1734
  "ChatMessageTokenLogprob": ".chatmessagetokenlogprob",
1735
+ "ChatMessageTokenLogprobTopLogprob": ".chatmessagetokenlogprob",
1736
+ "ChatMessageTokenLogprobTopLogprobTypedDict": ".chatmessagetokenlogprob",
1626
1737
  "ChatMessageTokenLogprobTypedDict": ".chatmessagetokenlogprob",
1627
- "TopLogprob": ".chatmessagetokenlogprob",
1628
- "TopLogprobTypedDict": ".chatmessagetokenlogprob",
1629
1738
  "ChatMessageTokenLogprobs": ".chatmessagetokenlogprobs",
1630
1739
  "ChatMessageTokenLogprobsTypedDict": ".chatmessagetokenlogprobs",
1631
1740
  "ChatMessageToolCall": ".chatmessagetoolcall",
@@ -1798,17 +1907,21 @@ _dynamic_imports: dict[str, str] = {
1798
1907
  "TypeTypedDict": ".openairesponsestoolchoice_union",
1799
1908
  "OpenAIResponsesTruncation": ".openairesponsestruncation",
1800
1909
  "OpenResponsesEasyInputMessage": ".openresponseseasyinputmessage",
1801
- "OpenResponsesEasyInputMessageContent1": ".openresponseseasyinputmessage",
1802
- "OpenResponsesEasyInputMessageContent1TypedDict": ".openresponseseasyinputmessage",
1803
- "OpenResponsesEasyInputMessageContent2": ".openresponseseasyinputmessage",
1804
- "OpenResponsesEasyInputMessageContent2TypedDict": ".openresponseseasyinputmessage",
1910
+ "OpenResponsesEasyInputMessageContentInputImage": ".openresponseseasyinputmessage",
1911
+ "OpenResponsesEasyInputMessageContentInputImageTypedDict": ".openresponseseasyinputmessage",
1912
+ "OpenResponsesEasyInputMessageContentType": ".openresponseseasyinputmessage",
1913
+ "OpenResponsesEasyInputMessageContentUnion1": ".openresponseseasyinputmessage",
1914
+ "OpenResponsesEasyInputMessageContentUnion1TypedDict": ".openresponseseasyinputmessage",
1915
+ "OpenResponsesEasyInputMessageContentUnion2": ".openresponseseasyinputmessage",
1916
+ "OpenResponsesEasyInputMessageContentUnion2TypedDict": ".openresponseseasyinputmessage",
1917
+ "OpenResponsesEasyInputMessageDetail": ".openresponseseasyinputmessage",
1805
1918
  "OpenResponsesEasyInputMessageRoleAssistant": ".openresponseseasyinputmessage",
1806
1919
  "OpenResponsesEasyInputMessageRoleDeveloper": ".openresponseseasyinputmessage",
1807
1920
  "OpenResponsesEasyInputMessageRoleSystem": ".openresponseseasyinputmessage",
1808
1921
  "OpenResponsesEasyInputMessageRoleUnion": ".openresponseseasyinputmessage",
1809
1922
  "OpenResponsesEasyInputMessageRoleUnionTypedDict": ".openresponseseasyinputmessage",
1810
1923
  "OpenResponsesEasyInputMessageRoleUser": ".openresponseseasyinputmessage",
1811
- "OpenResponsesEasyInputMessageType": ".openresponseseasyinputmessage",
1924
+ "OpenResponsesEasyInputMessageTypeMessage": ".openresponseseasyinputmessage",
1812
1925
  "OpenResponsesEasyInputMessageTypedDict": ".openresponseseasyinputmessage",
1813
1926
  "OpenResponsesErrorEvent": ".openresponseserrorevent",
1814
1927
  "OpenResponsesErrorEventType": ".openresponseserrorevent",
@@ -1836,14 +1949,18 @@ _dynamic_imports: dict[str, str] = {
1836
1949
  "OpenResponsesInput1TypedDict": ".openresponsesinput",
1837
1950
  "OpenResponsesInputTypedDict": ".openresponsesinput",
1838
1951
  "OpenResponsesInputMessageItem": ".openresponsesinputmessageitem",
1839
- "OpenResponsesInputMessageItemContent": ".openresponsesinputmessageitem",
1840
- "OpenResponsesInputMessageItemContentTypedDict": ".openresponsesinputmessageitem",
1952
+ "OpenResponsesInputMessageItemContentInputImage": ".openresponsesinputmessageitem",
1953
+ "OpenResponsesInputMessageItemContentInputImageTypedDict": ".openresponsesinputmessageitem",
1954
+ "OpenResponsesInputMessageItemContentType": ".openresponsesinputmessageitem",
1955
+ "OpenResponsesInputMessageItemContentUnion": ".openresponsesinputmessageitem",
1956
+ "OpenResponsesInputMessageItemContentUnionTypedDict": ".openresponsesinputmessageitem",
1957
+ "OpenResponsesInputMessageItemDetail": ".openresponsesinputmessageitem",
1841
1958
  "OpenResponsesInputMessageItemRoleDeveloper": ".openresponsesinputmessageitem",
1842
1959
  "OpenResponsesInputMessageItemRoleSystem": ".openresponsesinputmessageitem",
1843
1960
  "OpenResponsesInputMessageItemRoleUnion": ".openresponsesinputmessageitem",
1844
1961
  "OpenResponsesInputMessageItemRoleUnionTypedDict": ".openresponsesinputmessageitem",
1845
1962
  "OpenResponsesInputMessageItemRoleUser": ".openresponsesinputmessageitem",
1846
- "OpenResponsesInputMessageItemType": ".openresponsesinputmessageitem",
1963
+ "OpenResponsesInputMessageItemTypeMessage": ".openresponsesinputmessageitem",
1847
1964
  "OpenResponsesInputMessageItemTypedDict": ".openresponsesinputmessageitem",
1848
1965
  "OpenResponsesLogProbs": ".openresponseslogprobs",
1849
1966
  "OpenResponsesLogProbsTypedDict": ".openresponseslogprobs",
@@ -1881,6 +1998,7 @@ _dynamic_imports: dict[str, str] = {
1881
1998
  "OpenResponsesReasoningSummaryTextDoneEvent": ".openresponsesreasoningsummarytextdoneevent",
1882
1999
  "OpenResponsesReasoningSummaryTextDoneEventType": ".openresponsesreasoningsummarytextdoneevent",
1883
2000
  "OpenResponsesReasoningSummaryTextDoneEventTypedDict": ".openresponsesreasoningsummarytextdoneevent",
2001
+ "IDAutoRouter": ".openresponsesrequest",
1884
2002
  "IDFileParser": ".openresponsesrequest",
1885
2003
  "IDModeration": ".openresponsesrequest",
1886
2004
  "IDResponseHealing": ".openresponsesrequest",
@@ -1888,12 +2006,16 @@ _dynamic_imports: dict[str, str] = {
1888
2006
  "OpenResponsesRequest": ".openresponsesrequest",
1889
2007
  "OpenResponsesRequestIgnore": ".openresponsesrequest",
1890
2008
  "OpenResponsesRequestIgnoreTypedDict": ".openresponsesrequest",
2009
+ "OpenResponsesRequestImageConfig": ".openresponsesrequest",
2010
+ "OpenResponsesRequestImageConfigTypedDict": ".openresponsesrequest",
1891
2011
  "OpenResponsesRequestMaxPrice": ".openresponsesrequest",
1892
2012
  "OpenResponsesRequestMaxPriceTypedDict": ".openresponsesrequest",
1893
2013
  "OpenResponsesRequestOnly": ".openresponsesrequest",
1894
2014
  "OpenResponsesRequestOnlyTypedDict": ".openresponsesrequest",
1895
2015
  "OpenResponsesRequestOrder": ".openresponsesrequest",
1896
2016
  "OpenResponsesRequestOrderTypedDict": ".openresponsesrequest",
2017
+ "OpenResponsesRequestPluginAutoRouter": ".openresponsesrequest",
2018
+ "OpenResponsesRequestPluginAutoRouterTypedDict": ".openresponsesrequest",
1897
2019
  "OpenResponsesRequestPluginFileParser": ".openresponsesrequest",
1898
2020
  "OpenResponsesRequestPluginFileParserTypedDict": ".openresponsesrequest",
1899
2021
  "OpenResponsesRequestPluginModeration": ".openresponsesrequest",
@@ -2025,8 +2147,18 @@ _dynamic_imports: dict[str, str] = {
2025
2147
  "PDFParserEngine": ".pdfparserengine",
2026
2148
  "PDFParserOptions": ".pdfparseroptions",
2027
2149
  "PDFParserOptionsTypedDict": ".pdfparseroptions",
2150
+ "PercentileLatencyCutoffs": ".percentilelatencycutoffs",
2151
+ "PercentileLatencyCutoffsTypedDict": ".percentilelatencycutoffs",
2152
+ "PercentileStats": ".percentilestats",
2153
+ "PercentileStatsTypedDict": ".percentilestats",
2154
+ "PercentileThroughputCutoffs": ".percentilethroughputcutoffs",
2155
+ "PercentileThroughputCutoffsTypedDict": ".percentilethroughputcutoffs",
2028
2156
  "PerRequestLimits": ".perrequestlimits",
2029
2157
  "PerRequestLimitsTypedDict": ".perrequestlimits",
2158
+ "PreferredMaxLatency": ".preferredmaxlatency",
2159
+ "PreferredMaxLatencyTypedDict": ".preferredmaxlatency",
2160
+ "PreferredMinThroughput": ".preferredminthroughput",
2161
+ "PreferredMinThroughputTypedDict": ".preferredminthroughput",
2030
2162
  "ProviderName": ".providername",
2031
2163
  "ProviderOverloadedResponseErrorData": ".provideroverloadedresponseerrordata",
2032
2164
  "ProviderOverloadedResponseErrorDataTypedDict": ".provideroverloadedresponseerrordata",
@@ -2095,7 +2227,14 @@ _dynamic_imports: dict[str, str] = {
2095
2227
  "ResponseInputText": ".responseinputtext",
2096
2228
  "ResponseInputTextType": ".responseinputtext",
2097
2229
  "ResponseInputTextTypedDict": ".responseinputtext",
2230
+ "ResponseInputVideo": ".responseinputvideo",
2231
+ "ResponseInputVideoType": ".responseinputvideo",
2232
+ "ResponseInputVideoTypedDict": ".responseinputvideo",
2233
+ "Logprob": ".responseoutputtext",
2234
+ "LogprobTypedDict": ".responseoutputtext",
2098
2235
  "ResponseOutputText": ".responseoutputtext",
2236
+ "ResponseOutputTextTopLogprob": ".responseoutputtext",
2237
+ "ResponseOutputTextTopLogprobTypedDict": ".responseoutputtext",
2099
2238
  "ResponseOutputTextType": ".responseoutputtext",
2100
2239
  "ResponseOutputTextTypedDict": ".responseoutputtext",
2101
2240
  "CodeEnum": ".responseserrorfield",
@@ -2127,6 +2266,7 @@ _dynamic_imports: dict[str, str] = {
2127
2266
  "ResponsesOutputItemFunctionCallType": ".responsesoutputitemfunctioncall",
2128
2267
  "ResponsesOutputItemFunctionCallTypedDict": ".responsesoutputitemfunctioncall",
2129
2268
  "ResponsesOutputItemReasoning": ".responsesoutputitemreasoning",
2269
+ "ResponsesOutputItemReasoningFormat": ".responsesoutputitemreasoning",
2130
2270
  "ResponsesOutputItemReasoningStatusCompleted": ".responsesoutputitemreasoning",
2131
2271
  "ResponsesOutputItemReasoningStatusInProgress": ".responsesoutputitemreasoning",
2132
2272
  "ResponsesOutputItemReasoningStatusIncomplete": ".responsesoutputitemreasoning",
@@ -2145,6 +2285,7 @@ _dynamic_imports: dict[str, str] = {
2145
2285
  "ResponsesOutputMessageStatusUnionTypedDict": ".responsesoutputmessage",
2146
2286
  "ResponsesOutputMessageType": ".responsesoutputmessage",
2147
2287
  "ResponsesOutputMessageTypedDict": ".responsesoutputmessage",
2288
+ "ResponsesOutputModality": ".responsesoutputmodality",
2148
2289
  "ResponsesSearchContextSize": ".responsessearchcontextsize",
2149
2290
  "ResponsesWebSearchCallOutput": ".responseswebsearchcalloutput",
2150
2291
  "ResponsesWebSearchCallOutputType": ".responseswebsearchcalloutput",
@@ -36,12 +36,12 @@ Schema0Enum = Union[
36
36
  "Fireworks",
37
37
  "Friendli",
38
38
  "GMICloud",
39
- "GoPomelo",
40
39
  "Google",
41
40
  "Google AI Studio",
42
41
  "Groq",
43
42
  "Hyperbolic",
44
43
  "Inception",
44
+ "Inceptron",
45
45
  "InferenceNet",
46
46
  "Infermatic",
47
47
  "Inflection",
@@ -66,13 +66,14 @@ Schema0Enum = Union[
66
66
  "Phala",
67
67
  "Relace",
68
68
  "SambaNova",
69
+ "Seed",
69
70
  "SiliconFlow",
70
71
  "Sourceful",
71
72
  "Stealth",
72
73
  "StreamLake",
73
74
  "Switchpoint",
74
- "Targon",
75
75
  "Together",
76
+ "Upstage",
76
77
  "Venice",
77
78
  "WandB",
78
79
  "Xiaomi",
@@ -21,6 +21,7 @@ Schema5 = Union[
21
21
  Literal[
22
22
  "unknown",
23
23
  "openai-responses-v1",
24
+ "azure-openai-responses-v1",
24
25
  "xai-responses-v1",
25
26
  "anthropic-claude-v1",
26
27
  "google-gemini-v1",