openrouter 0.0.22__py3-none-any.whl → 0.1.1__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.
@@ -6,7 +6,6 @@ import builtins
6
6
  import sys
7
7
 
8
8
  if TYPE_CHECKING:
9
- from ._schema0 import Schema0, Schema0Enum, Schema0TypedDict
10
9
  from .activityitem import ActivityItem, ActivityItemTypedDict
11
10
  from .assistantmessage import (
12
11
  AssistantMessage,
@@ -26,25 +25,6 @@ if TYPE_CHECKING:
26
25
  from .chaterror import ChatErrorError, ChatErrorErrorTypedDict, Code, CodeTypedDict
27
26
  from .chatgenerationparams import (
28
27
  ChatGenerationParams,
29
- ChatGenerationParamsDataCollection,
30
- ChatGenerationParamsEngine,
31
- ChatGenerationParamsMaxPrice,
32
- ChatGenerationParamsMaxPriceTypedDict,
33
- ChatGenerationParamsPdf,
34
- ChatGenerationParamsPdfEngine,
35
- ChatGenerationParamsPdfTypedDict,
36
- ChatGenerationParamsPluginFileParser,
37
- ChatGenerationParamsPluginFileParserTypedDict,
38
- ChatGenerationParamsPluginModeration,
39
- ChatGenerationParamsPluginModerationTypedDict,
40
- ChatGenerationParamsPluginResponseHealing,
41
- ChatGenerationParamsPluginResponseHealingTypedDict,
42
- ChatGenerationParamsPluginUnion,
43
- ChatGenerationParamsPluginUnionTypedDict,
44
- ChatGenerationParamsPluginWeb,
45
- ChatGenerationParamsPluginWebTypedDict,
46
- ChatGenerationParamsProvider,
47
- ChatGenerationParamsProviderTypedDict,
48
28
  ChatGenerationParamsResponseFormatJSONObject,
49
29
  ChatGenerationParamsResponseFormatJSONObjectTypedDict,
50
30
  ChatGenerationParamsResponseFormatPython,
@@ -53,17 +33,14 @@ if TYPE_CHECKING:
53
33
  ChatGenerationParamsResponseFormatTextTypedDict,
54
34
  ChatGenerationParamsResponseFormatUnion,
55
35
  ChatGenerationParamsResponseFormatUnionTypedDict,
56
- ChatGenerationParamsRoute,
57
36
  ChatGenerationParamsStop,
58
37
  ChatGenerationParamsStopTypedDict,
59
38
  ChatGenerationParamsTypedDict,
60
39
  Debug,
61
40
  DebugTypedDict,
62
41
  Effort,
63
- Quantizations,
64
42
  Reasoning,
65
43
  ReasoningTypedDict,
66
- Sort,
67
44
  )
68
45
  from .chatgenerationtokenusage import (
69
46
  ChatGenerationTokenUsage,
@@ -444,34 +421,18 @@ if TYPE_CHECKING:
444
421
  OpenResponsesReasoningSummaryTextDoneEventTypedDict,
445
422
  )
446
423
  from .openresponsesrequest import (
424
+ Engine,
447
425
  IDFileParser,
448
426
  IDModeration,
449
427
  IDResponseHealing,
450
428
  IDWeb,
451
429
  Ignore,
452
430
  IgnoreTypedDict,
431
+ MaxPrice,
432
+ MaxPriceTypedDict,
453
433
  Only,
454
434
  OnlyTypedDict,
455
435
  OpenResponsesRequest,
456
- OpenResponsesRequestEngine,
457
- OpenResponsesRequestMaxPrice,
458
- OpenResponsesRequestMaxPriceTypedDict,
459
- OpenResponsesRequestPdf,
460
- OpenResponsesRequestPdfEngine,
461
- OpenResponsesRequestPdfTypedDict,
462
- OpenResponsesRequestPluginFileParser,
463
- OpenResponsesRequestPluginFileParserTypedDict,
464
- OpenResponsesRequestPluginModeration,
465
- OpenResponsesRequestPluginModerationTypedDict,
466
- OpenResponsesRequestPluginResponseHealing,
467
- OpenResponsesRequestPluginResponseHealingTypedDict,
468
- OpenResponsesRequestPluginUnion,
469
- OpenResponsesRequestPluginUnionTypedDict,
470
- OpenResponsesRequestPluginWeb,
471
- OpenResponsesRequestPluginWebTypedDict,
472
- OpenResponsesRequestProvider,
473
- OpenResponsesRequestProviderTypedDict,
474
- OpenResponsesRequestRoute,
475
436
  OpenResponsesRequestToolFunction,
476
437
  OpenResponsesRequestToolFunctionTypedDict,
477
438
  OpenResponsesRequestToolUnion,
@@ -480,6 +441,21 @@ if TYPE_CHECKING:
480
441
  OpenResponsesRequestTypedDict,
481
442
  Order,
482
443
  OrderTypedDict,
444
+ Pdf,
445
+ PdfEngine,
446
+ PdfTypedDict,
447
+ Plugin,
448
+ PluginFileParser,
449
+ PluginFileParserTypedDict,
450
+ PluginModeration,
451
+ PluginModerationTypedDict,
452
+ PluginResponseHealing,
453
+ PluginResponseHealingTypedDict,
454
+ PluginTypedDict,
455
+ PluginWeb,
456
+ PluginWebTypedDict,
457
+ Provider,
458
+ ProviderTypedDict,
483
459
  ServiceTier,
484
460
  Truncation,
485
461
  )
@@ -834,25 +810,6 @@ __all__ = [
834
810
  "ChatErrorError",
835
811
  "ChatErrorErrorTypedDict",
836
812
  "ChatGenerationParams",
837
- "ChatGenerationParamsDataCollection",
838
- "ChatGenerationParamsEngine",
839
- "ChatGenerationParamsMaxPrice",
840
- "ChatGenerationParamsMaxPriceTypedDict",
841
- "ChatGenerationParamsPdf",
842
- "ChatGenerationParamsPdfEngine",
843
- "ChatGenerationParamsPdfTypedDict",
844
- "ChatGenerationParamsPluginFileParser",
845
- "ChatGenerationParamsPluginFileParserTypedDict",
846
- "ChatGenerationParamsPluginModeration",
847
- "ChatGenerationParamsPluginModerationTypedDict",
848
- "ChatGenerationParamsPluginResponseHealing",
849
- "ChatGenerationParamsPluginResponseHealingTypedDict",
850
- "ChatGenerationParamsPluginUnion",
851
- "ChatGenerationParamsPluginUnionTypedDict",
852
- "ChatGenerationParamsPluginWeb",
853
- "ChatGenerationParamsPluginWebTypedDict",
854
- "ChatGenerationParamsProvider",
855
- "ChatGenerationParamsProviderTypedDict",
856
813
  "ChatGenerationParamsResponseFormatJSONObject",
857
814
  "ChatGenerationParamsResponseFormatJSONObjectTypedDict",
858
815
  "ChatGenerationParamsResponseFormatPython",
@@ -861,7 +818,6 @@ __all__ = [
861
818
  "ChatGenerationParamsResponseFormatTextTypedDict",
862
819
  "ChatGenerationParamsResponseFormatUnion",
863
820
  "ChatGenerationParamsResponseFormatUnionTypedDict",
864
- "ChatGenerationParamsRoute",
865
821
  "ChatGenerationParamsStop",
866
822
  "ChatGenerationParamsStopTypedDict",
867
823
  "ChatGenerationParamsTypedDict",
@@ -954,6 +910,7 @@ __all__ = [
954
910
  "EdgeNetworkTimeoutResponseErrorDataTypedDict",
955
911
  "Effort",
956
912
  "EndpointStatus",
913
+ "Engine",
957
914
  "FileCitation",
958
915
  "FileCitationType",
959
916
  "FileCitationTypedDict",
@@ -981,6 +938,8 @@ __all__ = [
981
938
  "JSONSchemaConfigTypedDict",
982
939
  "ListEndpointsResponse",
983
940
  "ListEndpointsResponseTypedDict",
941
+ "MaxPrice",
942
+ "MaxPriceTypedDict",
984
943
  "Message",
985
944
  "MessageContent",
986
945
  "MessageContentTypedDict",
@@ -1153,25 +1112,6 @@ __all__ = [
1153
1112
  "OpenResponsesReasoningType",
1154
1113
  "OpenResponsesReasoningTypedDict",
1155
1114
  "OpenResponsesRequest",
1156
- "OpenResponsesRequestEngine",
1157
- "OpenResponsesRequestMaxPrice",
1158
- "OpenResponsesRequestMaxPriceTypedDict",
1159
- "OpenResponsesRequestPdf",
1160
- "OpenResponsesRequestPdfEngine",
1161
- "OpenResponsesRequestPdfTypedDict",
1162
- "OpenResponsesRequestPluginFileParser",
1163
- "OpenResponsesRequestPluginFileParserTypedDict",
1164
- "OpenResponsesRequestPluginModeration",
1165
- "OpenResponsesRequestPluginModerationTypedDict",
1166
- "OpenResponsesRequestPluginResponseHealing",
1167
- "OpenResponsesRequestPluginResponseHealingTypedDict",
1168
- "OpenResponsesRequestPluginUnion",
1169
- "OpenResponsesRequestPluginUnionTypedDict",
1170
- "OpenResponsesRequestPluginWeb",
1171
- "OpenResponsesRequestPluginWebTypedDict",
1172
- "OpenResponsesRequestProvider",
1173
- "OpenResponsesRequestProviderTypedDict",
1174
- "OpenResponsesRequestRoute",
1175
1115
  "OpenResponsesRequestToolFunction",
1176
1116
  "OpenResponsesRequestToolFunctionTypedDict",
1177
1117
  "OpenResponsesRequestToolUnion",
@@ -1265,25 +1205,39 @@ __all__ = [
1265
1205
  "PayloadTooLargeResponseErrorDataTypedDict",
1266
1206
  "PaymentRequiredResponseErrorData",
1267
1207
  "PaymentRequiredResponseErrorDataTypedDict",
1208
+ "Pdf",
1209
+ "PdfEngine",
1210
+ "PdfTypedDict",
1268
1211
  "PerRequestLimits",
1269
1212
  "PerRequestLimitsTypedDict",
1213
+ "Plugin",
1214
+ "PluginFileParser",
1215
+ "PluginFileParserTypedDict",
1216
+ "PluginModeration",
1217
+ "PluginModerationTypedDict",
1218
+ "PluginResponseHealing",
1219
+ "PluginResponseHealingTypedDict",
1220
+ "PluginTypedDict",
1221
+ "PluginWeb",
1222
+ "PluginWebTypedDict",
1270
1223
  "Pricing",
1271
1224
  "PricingTypedDict",
1272
1225
  "Prompt",
1273
1226
  "PromptTokensDetails",
1274
1227
  "PromptTokensDetailsTypedDict",
1275
1228
  "PromptTypedDict",
1229
+ "Provider",
1276
1230
  "ProviderName",
1277
1231
  "ProviderOverloadedResponseErrorData",
1278
1232
  "ProviderOverloadedResponseErrorDataTypedDict",
1279
1233
  "ProviderSort",
1234
+ "ProviderTypedDict",
1280
1235
  "PublicEndpoint",
1281
1236
  "PublicEndpointQuantization",
1282
1237
  "PublicEndpointTypedDict",
1283
1238
  "PublicPricing",
1284
1239
  "PublicPricingTypedDict",
1285
1240
  "Quantization",
1286
- "Quantizations",
1287
1241
  "Reason",
1288
1242
  "Reasoning",
1289
1243
  "ReasoningSummaryText",
@@ -1377,15 +1331,11 @@ __all__ = [
1377
1331
  "ResponsesWebSearchUserLocation",
1378
1332
  "ResponsesWebSearchUserLocationType",
1379
1333
  "ResponsesWebSearchUserLocationTypedDict",
1380
- "Schema0",
1381
- "Schema0Enum",
1382
- "Schema0TypedDict",
1383
1334
  "Security",
1384
1335
  "SecurityTypedDict",
1385
1336
  "ServiceTier",
1386
1337
  "ServiceUnavailableResponseErrorData",
1387
1338
  "ServiceUnavailableResponseErrorDataTypedDict",
1388
- "Sort",
1389
1339
  "StreamOptions",
1390
1340
  "StreamOptionsTypedDict",
1391
1341
  "SystemMessage",
@@ -1453,9 +1403,6 @@ __all__ = [
1453
1403
  ]
1454
1404
 
1455
1405
  _dynamic_imports: dict[str, str] = {
1456
- "Schema0": "._schema0",
1457
- "Schema0Enum": "._schema0",
1458
- "Schema0TypedDict": "._schema0",
1459
1406
  "ActivityItem": ".activityitem",
1460
1407
  "ActivityItemTypedDict": ".activityitem",
1461
1408
  "AssistantMessage": ".assistantmessage",
@@ -1472,25 +1419,6 @@ _dynamic_imports: dict[str, str] = {
1472
1419
  "Code": ".chaterror",
1473
1420
  "CodeTypedDict": ".chaterror",
1474
1421
  "ChatGenerationParams": ".chatgenerationparams",
1475
- "ChatGenerationParamsDataCollection": ".chatgenerationparams",
1476
- "ChatGenerationParamsEngine": ".chatgenerationparams",
1477
- "ChatGenerationParamsMaxPrice": ".chatgenerationparams",
1478
- "ChatGenerationParamsMaxPriceTypedDict": ".chatgenerationparams",
1479
- "ChatGenerationParamsPdf": ".chatgenerationparams",
1480
- "ChatGenerationParamsPdfEngine": ".chatgenerationparams",
1481
- "ChatGenerationParamsPdfTypedDict": ".chatgenerationparams",
1482
- "ChatGenerationParamsPluginFileParser": ".chatgenerationparams",
1483
- "ChatGenerationParamsPluginFileParserTypedDict": ".chatgenerationparams",
1484
- "ChatGenerationParamsPluginModeration": ".chatgenerationparams",
1485
- "ChatGenerationParamsPluginModerationTypedDict": ".chatgenerationparams",
1486
- "ChatGenerationParamsPluginResponseHealing": ".chatgenerationparams",
1487
- "ChatGenerationParamsPluginResponseHealingTypedDict": ".chatgenerationparams",
1488
- "ChatGenerationParamsPluginUnion": ".chatgenerationparams",
1489
- "ChatGenerationParamsPluginUnionTypedDict": ".chatgenerationparams",
1490
- "ChatGenerationParamsPluginWeb": ".chatgenerationparams",
1491
- "ChatGenerationParamsPluginWebTypedDict": ".chatgenerationparams",
1492
- "ChatGenerationParamsProvider": ".chatgenerationparams",
1493
- "ChatGenerationParamsProviderTypedDict": ".chatgenerationparams",
1494
1422
  "ChatGenerationParamsResponseFormatJSONObject": ".chatgenerationparams",
1495
1423
  "ChatGenerationParamsResponseFormatJSONObjectTypedDict": ".chatgenerationparams",
1496
1424
  "ChatGenerationParamsResponseFormatPython": ".chatgenerationparams",
@@ -1499,17 +1427,14 @@ _dynamic_imports: dict[str, str] = {
1499
1427
  "ChatGenerationParamsResponseFormatTextTypedDict": ".chatgenerationparams",
1500
1428
  "ChatGenerationParamsResponseFormatUnion": ".chatgenerationparams",
1501
1429
  "ChatGenerationParamsResponseFormatUnionTypedDict": ".chatgenerationparams",
1502
- "ChatGenerationParamsRoute": ".chatgenerationparams",
1503
1430
  "ChatGenerationParamsStop": ".chatgenerationparams",
1504
1431
  "ChatGenerationParamsStopTypedDict": ".chatgenerationparams",
1505
1432
  "ChatGenerationParamsTypedDict": ".chatgenerationparams",
1506
1433
  "Debug": ".chatgenerationparams",
1507
1434
  "DebugTypedDict": ".chatgenerationparams",
1508
1435
  "Effort": ".chatgenerationparams",
1509
- "Quantizations": ".chatgenerationparams",
1510
1436
  "Reasoning": ".chatgenerationparams",
1511
1437
  "ReasoningTypedDict": ".chatgenerationparams",
1512
- "Sort": ".chatgenerationparams",
1513
1438
  "ChatGenerationTokenUsage": ".chatgenerationtokenusage",
1514
1439
  "ChatGenerationTokenUsageTypedDict": ".chatgenerationtokenusage",
1515
1440
  "CompletionTokensDetails": ".chatgenerationtokenusage",
@@ -1801,34 +1726,18 @@ _dynamic_imports: dict[str, str] = {
1801
1726
  "OpenResponsesReasoningSummaryTextDoneEvent": ".openresponsesreasoningsummarytextdoneevent",
1802
1727
  "OpenResponsesReasoningSummaryTextDoneEventType": ".openresponsesreasoningsummarytextdoneevent",
1803
1728
  "OpenResponsesReasoningSummaryTextDoneEventTypedDict": ".openresponsesreasoningsummarytextdoneevent",
1729
+ "Engine": ".openresponsesrequest",
1804
1730
  "IDFileParser": ".openresponsesrequest",
1805
1731
  "IDModeration": ".openresponsesrequest",
1806
1732
  "IDResponseHealing": ".openresponsesrequest",
1807
1733
  "IDWeb": ".openresponsesrequest",
1808
1734
  "Ignore": ".openresponsesrequest",
1809
1735
  "IgnoreTypedDict": ".openresponsesrequest",
1736
+ "MaxPrice": ".openresponsesrequest",
1737
+ "MaxPriceTypedDict": ".openresponsesrequest",
1810
1738
  "Only": ".openresponsesrequest",
1811
1739
  "OnlyTypedDict": ".openresponsesrequest",
1812
1740
  "OpenResponsesRequest": ".openresponsesrequest",
1813
- "OpenResponsesRequestEngine": ".openresponsesrequest",
1814
- "OpenResponsesRequestMaxPrice": ".openresponsesrequest",
1815
- "OpenResponsesRequestMaxPriceTypedDict": ".openresponsesrequest",
1816
- "OpenResponsesRequestPdf": ".openresponsesrequest",
1817
- "OpenResponsesRequestPdfEngine": ".openresponsesrequest",
1818
- "OpenResponsesRequestPdfTypedDict": ".openresponsesrequest",
1819
- "OpenResponsesRequestPluginFileParser": ".openresponsesrequest",
1820
- "OpenResponsesRequestPluginFileParserTypedDict": ".openresponsesrequest",
1821
- "OpenResponsesRequestPluginModeration": ".openresponsesrequest",
1822
- "OpenResponsesRequestPluginModerationTypedDict": ".openresponsesrequest",
1823
- "OpenResponsesRequestPluginResponseHealing": ".openresponsesrequest",
1824
- "OpenResponsesRequestPluginResponseHealingTypedDict": ".openresponsesrequest",
1825
- "OpenResponsesRequestPluginUnion": ".openresponsesrequest",
1826
- "OpenResponsesRequestPluginUnionTypedDict": ".openresponsesrequest",
1827
- "OpenResponsesRequestPluginWeb": ".openresponsesrequest",
1828
- "OpenResponsesRequestPluginWebTypedDict": ".openresponsesrequest",
1829
- "OpenResponsesRequestProvider": ".openresponsesrequest",
1830
- "OpenResponsesRequestProviderTypedDict": ".openresponsesrequest",
1831
- "OpenResponsesRequestRoute": ".openresponsesrequest",
1832
1741
  "OpenResponsesRequestToolFunction": ".openresponsesrequest",
1833
1742
  "OpenResponsesRequestToolFunctionTypedDict": ".openresponsesrequest",
1834
1743
  "OpenResponsesRequestToolUnion": ".openresponsesrequest",
@@ -1837,6 +1746,21 @@ _dynamic_imports: dict[str, str] = {
1837
1746
  "OpenResponsesRequestTypedDict": ".openresponsesrequest",
1838
1747
  "Order": ".openresponsesrequest",
1839
1748
  "OrderTypedDict": ".openresponsesrequest",
1749
+ "Pdf": ".openresponsesrequest",
1750
+ "PdfEngine": ".openresponsesrequest",
1751
+ "PdfTypedDict": ".openresponsesrequest",
1752
+ "Plugin": ".openresponsesrequest",
1753
+ "PluginFileParser": ".openresponsesrequest",
1754
+ "PluginFileParserTypedDict": ".openresponsesrequest",
1755
+ "PluginModeration": ".openresponsesrequest",
1756
+ "PluginModerationTypedDict": ".openresponsesrequest",
1757
+ "PluginResponseHealing": ".openresponsesrequest",
1758
+ "PluginResponseHealingTypedDict": ".openresponsesrequest",
1759
+ "PluginTypedDict": ".openresponsesrequest",
1760
+ "PluginWeb": ".openresponsesrequest",
1761
+ "PluginWebTypedDict": ".openresponsesrequest",
1762
+ "Provider": ".openresponsesrequest",
1763
+ "ProviderTypedDict": ".openresponsesrequest",
1840
1764
  "ServiceTier": ".openresponsesrequest",
1841
1765
  "Truncation": ".openresponsesrequest",
1842
1766
  "OpenResponsesResponseText": ".openresponsesresponsetext",