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.
@@ -1,13 +1,13 @@
1
1
  openrouter/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
2
- openrouter/_version.py,sha256=uAc5ru6tdMIDNZqQtO4q2uOAaoZsJ6Brz4-RKOWhVds,464
2
+ openrouter/_version.py,sha256=KVxTickedLucovT9-lJ3-8hy7GH7I_aw6tT7-SJKHhk,462
3
3
  openrouter/analytics.py,sha256=0yULK6M4DpIdOrHCgLF5ZmcbI0oPg7oBUp1Qx5gx2vw,9793
4
- openrouter/api_keys.py,sha256=XMPuRMfcf8on6GEjElvNNTszGHYGuMr4YKE9yFrl1js,57682
4
+ openrouter/api_keys.py,sha256=nNg1mHHoZWuacfOzytuP1776oz-yONzvDtNr4HZVhU0,57520
5
5
  openrouter/basesdk.py,sha256=VhwM2eELTCr-7vgi1MLohTxYmNJurxN0hwhQjJKfOsA,12595
6
6
  openrouter/beta.py,sha256=MzJTf7x1qwLAR2nd5Y4yzD8bIQCOsREEPf8uhwune_U,668
7
- openrouter/chat.py,sha256=UhcHuG_ExmS79AmRj729xroHmQq0NR7NBSZdxW0VE1k,39709
7
+ openrouter/chat.py,sha256=VRPDeS7yZk-o1iYUShduOcn3-9-h0I8F4_iwGMjhon4,31807
8
8
  openrouter/completions.py,sha256=TB7mb7XSfflk7XtMnys0l5sTI-3RY88xKTWYw1MqdHU,14276
9
9
  openrouter/credits.py,sha256=h1oyFu4FoShOzFNvwHz1_ZKWJeof5Mf5V0A8OIU8Jps,18916
10
- openrouter/embeddings.py,sha256=91Ug5KhHCduhJGLqn2vlhyUPXXSMsSha-4y15OQ6EzA,24355
10
+ openrouter/embeddings.py,sha256=qF9qV2J2yfY1A35b3_PBjo29qWNieszaz4RyxDJHQwI,23428
11
11
  openrouter/endpoints.py,sha256=z50tI4vJbF6Sbq9_rKdKWIxmU1MYOfKau2K8GNnxInY,15520
12
12
  openrouter/generations.py,sha256=sOwPS56RWFLLVaeher1gLoYhdQLa0BcZ-TBwQsmtEAU,12092
13
13
  openrouter/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
@@ -16,22 +16,21 @@ openrouter/oauth.py,sha256=zjmDnnJipJVzM6dqCft5Y73KOtL69rlYPXCXHgXCoTo,21476
16
16
  openrouter/parameters.py,sha256=DNE-FBjsaYBVAyPVBZNSAtbD9qK_LKhC5jkYsjGN-ZY,9648
17
17
  openrouter/providers.py,sha256=UDurmmNvy1y78TGJ8KrxOwx0XY6VGw2n1ZZBv0IOI3U,7414
18
18
  openrouter/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
19
- openrouter/responses.py,sha256=xCGMWZacnSbaCkmsflMtztU3xpCyGjhdRZquCL8MP3c,54999
19
+ openrouter/responses.py,sha256=zFUGta3Kg6ri1102t0ux828733UN3O8kv7NVmADbpa8,50325
20
20
  openrouter/sdk.py,sha256=e9a8LB2W9ECr6iCKnuzTLsXteyTaFzuGVjL6_8F44TY,9177
21
21
  openrouter/sdkconfiguration.py,sha256=Dy4l6oqgR2cdrWqL7i9nkGmjaWaS7X0m5TeOUDzHc5o,1848
22
22
  openrouter/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
23
23
  openrouter/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
24
24
  openrouter/_hooks/sdkhooks.py,sha256=LCCg5knZJaFz4Jo42RY9WAHZRRnDbvUE88sEKhQYXM8,2527
25
25
  openrouter/_hooks/types.py,sha256=ZFfWuTCcAptJH7HnEKcZK7K9ENY9bp6zMPbyLLbzNzQ,2989
26
- openrouter/components/__init__.py,sha256=CX4x2gUaMKtdllZ3GpK8lKE8uQEknVMkIyAB11jBYCE,99191
27
- openrouter/components/_schema0.py,sha256=zx1Af9o-sIptU4SVKEEZkMTSFRYLJc0G-_zhvZdarf8,2005
26
+ openrouter/components/__init__.py,sha256=c2ZMBhVMB7NfxwYKpOd9-_JL62EbTXiWbs0mbPwYoZQ,94492
28
27
  openrouter/components/activityitem.py,sha256=QYddTlC36y1VMbIviD50Qw8Rt1GODRXMV_iJuotwyNo,1920
29
28
  openrouter/components/assistantmessage.py,sha256=nIiDnOAxDZ4lyauJ946pYf5Wnk0Gi7R0bsoNw2UTLHM,2709
30
29
  openrouter/components/badgatewayresponseerrordata.py,sha256=pojFsYueX95FC7Ic6tiEiphw4fvI9Z6Jax0QUACU-FI,1643
31
30
  openrouter/components/badrequestresponseerrordata.py,sha256=vo3KNC-cwAqaohMTV0ztfnklqWmxpC5VKUZp-3FUoYE,1643
32
31
  openrouter/components/chatcompletionfinishreason.py,sha256=oPpIHQ4HdBIcszyYlbsfPocwGUBZ2EBnwDvvUD_3sPM,367
33
32
  openrouter/components/chaterror.py,sha256=J47w1HLn4kmAxGiz4nVaMMbspoBu3s07-kkmjXaFa80,1733
34
- openrouter/components/chatgenerationparams.py,sha256=F23HDWMPA3b_gHgqQyGqBzkaNTpyuxoS8yYTsdsC_hI,22933
33
+ openrouter/components/chatgenerationparams.py,sha256=vtAhpv0ghrkrm3Kpk_60sXSapZvo9pfjuKlZu5catnk,8932
35
34
  openrouter/components/chatgenerationtokenusage.py,sha256=nvu42A6gxY2W2sSDjg5QocVygD7xzPZtQ8AAOltCwoU,3994
36
35
  openrouter/components/chatmessagecontentitem.py,sha256=L4luQfVHGUKnkL1w3cd-WuLtdGjY9g32yqKUuZJO7DI,1498
37
36
  openrouter/components/chatmessagecontentitemaudio.py,sha256=w2oedR10YJmBWFlsNkTqqLHt2fZHcK_zfHGV3PxY4xM,1025
@@ -82,7 +81,7 @@ openrouter/components/openairesponsesincompletedetails.py,sha256=FZaKZE4f6ryvDba
82
81
  openrouter/components/openairesponsesinput_union.py,sha256=WItKe1RteSuaxAUxmsB_XrEarfllddf190g48eYNGXA,9148
83
82
  openrouter/components/openairesponsesprompt.py,sha256=Z2dZ1-ZehXXwiKr0pcSMcwmMSszZ90JSQRuH8o_m4-Y,2079
84
83
  openrouter/components/openairesponsesreasoningconfig.py,sha256=1Wwb1eA1tTHzWZQtZYP5b_x5TJdIc-ftXh6ywtqQuM8,2018
85
- openrouter/components/openairesponsesreasoningeffort.py,sha256=3hp6Wx7_fzWf9PjPhMepdZdfmOEAt4iKmTpditov35s,373
84
+ openrouter/components/openairesponsesreasoningeffort.py,sha256=696FQdRVocyvo5JIneI51Ylfk5XCJjHrSiNqEV2ZlS0,356
86
85
  openrouter/components/openairesponsesrefusalcontent.py,sha256=Y5KQD2-rLr4lv-C9-NKeJZsmoKYW6C_oq-Lch_4Zndc,504
87
86
  openrouter/components/openairesponsesresponsestatus.py,sha256=pTo8MQQN5e-qDnkQk15YLX4xse0giYEO8qQ2QWjjb3c,394
88
87
  openrouter/components/openairesponsesservicetier.py,sha256=6Fd5GbV_AtTxYhKlpet-NGjpDIKew5URl7ZXMXA0WhY,356
@@ -107,7 +106,7 @@ openrouter/components/openresponsesreasoningdoneevent.py,sha256=8uaytNWLnKY0zeGc
107
106
  openrouter/components/openresponsesreasoningsummarypartaddedevent.py,sha256=XIwRwP2ajJBjFikH5XaHUaWf5arv7XnOeoM-8ADoJns,1053
108
107
  openrouter/components/openresponsesreasoningsummarytextdeltaevent.py,sha256=CENzEhU9hur6ZUekCoiysSRVzfoVIHFK9aXAs5lQ760,940
109
108
  openrouter/components/openresponsesreasoningsummarytextdoneevent.py,sha256=iRWYHS1Men5in-_McPGfGTJtp-mifontwNw6VoKAmME,940
110
- openrouter/components/openresponsesrequest.py,sha256=nVdsUZa3d0ULaXIFEXYxOStVG9hXy8mu34MYY7H_ads,26563
109
+ openrouter/components/openresponsesrequest.py,sha256=i0U6anDSZ8y09W-UZKDdPL7cNi6b5WO6hdupRbtyBZ8,22709
111
110
  openrouter/components/openresponsesresponsetext.py,sha256=EvJncVKeadIuD3qBsjCCc2rpgybVMvsE-U4ZQbWMxX8,2415
112
111
  openrouter/components/openresponsesstreamevent.py,sha256=5A6qa56E3PtEN87rixCMiumQhVbfFcZIoYXA5ILkOeQ,20717
113
112
  openrouter/components/openresponsestoplogprobs.py,sha256=G6evfWbvhl0K_XapnUwN0lB67Z38NJgr6BV1GUssbXU,566
@@ -123,11 +122,11 @@ openrouter/components/parameter.py,sha256=ffPZ8lvlReTST8pTkyDyJVvLTOT0VxqVYktbSX
123
122
  openrouter/components/payloadtoolargeresponseerrordata.py,sha256=kksPhvoVefVY_snEVvP37TEh_TlZd_fCYft0T8RA5Pc,1663
124
123
  openrouter/components/paymentrequiredresponseerrordata.py,sha256=rwnrHSbpFug6BjgVPRbgx9eZyxMqwtySBa23PMVk3B8,1663
125
124
  openrouter/components/perrequestlimits.py,sha256=_qhdLIdZCGoPP_V874ik7tOIaD4fm0s0F95etZCgpaU,641
126
- openrouter/components/providername.py,sha256=QXfEPxkvag6Rwq-_Adj4z0pw6KKLILfUSd4H1OPtVHg,1638
125
+ openrouter/components/providername.py,sha256=7YO9ltpV48qdY8SB7VGiUFsLYwNMNH-PGzGipIItsEk,1583
127
126
  openrouter/components/provideroverloadedresponseerrordata.py,sha256=mHwExxgAplc5sL0rJS0x6ajSAs2-Hu16lWy-0UX6BN0,1675
128
127
  openrouter/components/providersort.py,sha256=wseCudRZlwH_oL9cEbxZAcrpB-NiS-ZM36rz9_cG0rg,438
129
- openrouter/components/publicendpoint.py,sha256=MsBM-x0Wsk1bn030ITPDM2qjKT0bU-mcflwP8zd7dEc,5506
130
- openrouter/components/publicpricing.py,sha256=WNSEiJroJuKy7G9ey-K2xorsBMm1hj6zl1qhOYDK0dU,2703
128
+ openrouter/components/publicendpoint.py,sha256=yXNmXUf5obvhxgFvMqpd9Zs5Vr9Rl7mQiAVVdzXdDlk,5751
129
+ openrouter/components/publicpricing.py,sha256=0VlMzB_GPNoNLeJtgH8fUdPTorWqWoZlLNy2_bp9KwA,2948
131
130
  openrouter/components/quantization.py,sha256=1LUfelzKMuC3ZwSpkWOD1ORaNOFcepzMqDHqoYddmNw,398
132
131
  openrouter/components/reasoningsummarytext.py,sha256=qWxNZNRc2mDDKfdLzxYMn8SufkXHipjq5KeDRoWAKHs,458
133
132
  openrouter/components/reasoningsummaryverbosity.py,sha256=gWBgfnfwZH1Iq7iYH8UtDpXtP9_Hm6fJxKwZ_tZDZlo,322
@@ -192,10 +191,10 @@ openrouter/errors/unprocessableentityresponse_error.py,sha256=uepXefHSgB1-5HS3A3
192
191
  openrouter/models/__init__.py,sha256=wIW9sbvSKlrGyoPY4mXvHqw-_Inpl6zqpN6U6j-w6SU,83
193
192
  openrouter/models/internal/__init__.py,sha256=xowceJVTVAP3WRyQ0NEGkm9PAoYU1l0_VYgXZP0ZvlM,1569
194
193
  openrouter/models/internal/globals.py,sha256=fI0KPVfEWU8t5H3Wph85DiLo6NSIt69gSnCW9wLY4NI,1363
195
- openrouter/operations/__init__.py,sha256=Tk9uPjJplDiwJSi3MP11DkSGX7rzhlocC5I92k6Uqso,18457
194
+ openrouter/operations/__init__.py,sha256=6X8lquJZ45iXX0UVjwI9fUgsQ63vNpxj_JsRPUwoXqg,18168
196
195
  openrouter/operations/createauthkeyscode.py,sha256=WM9oLRrH7U64XfYEpXDUDvf7w4N6qm6BUZhEXdHPKLg,4034
197
196
  openrouter/operations/createcoinbasecharge.py,sha256=yOkAvPj_e6rAqM6ThuZKHs7QId5m9S2vH701oNOeYAU,2241
198
- openrouter/operations/createembeddings.py,sha256=gVbSAz3q-sb3MAyfXJfogCFpsjARpsaG6buhFehn5AE,14572
197
+ openrouter/operations/createembeddings.py,sha256=fWFbsoL-5We3AibZlyJ-y4tZXDUP7uX9L60m43J6s4c,13471
199
198
  openrouter/operations/createkeys.py,sha256=P6UbY4onogiWdMCMfcnNPHvJLRSIuB-KetdHznD2PAM,8322
200
199
  openrouter/operations/createresponses.py,sha256=Vu1lRymqLWq4PvxkJPJIwHqFRdyyy47bI3SMuU4v2j0,1942
201
200
  openrouter/operations/deletekeys.py,sha256=_XTN4M6sU22DBdhZVj-4qaCo5k-CWEq1e_Xsp5fqqIU,1149
@@ -205,7 +204,7 @@ openrouter/operations/getcurrentkey.py,sha256=NJd5s5QfvZCHjSiUPlS7rZNFm7sBQz1pyT
205
204
  openrouter/operations/getgeneration.py,sha256=vp1Mp7Bb4TezPuciT8uPS4n42c_3tgaMe9d9HFAxShw,8270
206
205
  openrouter/operations/getkey.py,sha256=upv7udNsaAILJpqq-L4Mvn971xCts_4nQqzP3zJB9mU,5473
207
206
  openrouter/operations/getmodels.py,sha256=AUooAWNQiSGWrmKhEvelwjX4AdbUgBpFb2qABjAsCTQ,748
208
- openrouter/operations/getparameters.py,sha256=IJkLfTYkl4GbuCt7snilZIo84X-EpgNAMYmUN-wVaHQ,4419
207
+ openrouter/operations/getparameters.py,sha256=wC7vcGmqqjj-eeBvO34UXKa2DHM6mIGwmQOSE3vX9IE,4364
209
208
  openrouter/operations/getuseractivity.py,sha256=oeqU_jqy8t2xtBjnQ9opfDY-FtJlK5essI9oJvfYTjs,1252
210
209
  openrouter/operations/list.py,sha256=meW1unMF371YvOdNFdIjh3Ya2ADY-7xo2WQcFaKAwHk,5766
211
210
  openrouter/operations/listendpoints.py,sha256=keS39WecfOoZvYVZdPEN7Fuxb5LFWhgpbhNXaVReGSQ,1117
@@ -213,7 +212,7 @@ openrouter/operations/listendpointszdr.py,sha256=2CdXrknZg79FTHvFOMA165epUYulrg0
213
212
  openrouter/operations/listmodelsuser.py,sha256=m_jM93D_m-MnUB6S0WUDHX1bQMP-UJimYOxAcM0Kqjw,643
214
213
  openrouter/operations/listproviders.py,sha256=072auQF9sz-yb0UmZAo8sRacibp0IldU0pndumAyK1g,2530
215
214
  openrouter/operations/sendchatcompletionrequest.py,sha256=AtBi9ZPxgU9kb0sKpt-5gCXrkgY2Qsmj_D2GNLRzOXg,1364
216
- openrouter/operations/updatekeys.py,sha256=zCKB7Gvh9kYkpcow3h6I6zSc2aqw-K0v_8Xml8iAOZ0,8618
215
+ openrouter/operations/updatekeys.py,sha256=8dYLGR6-1WFIFKo_YvgIGIoDoT_yTsDQFm08-PEyuz8,8602
217
216
  openrouter/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
218
217
  openrouter/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
219
218
  openrouter/utils/__init__.py,sha256=CAG0O76aEToGKXpT6Ft87Vd-iiQTh4XdBrQ37BVbsiM,5861
@@ -235,8 +234,8 @@ openrouter/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0Hwv
235
234
  openrouter/utils/unmarshal_json_response.py,sha256=glq_wLEH2vSvfMedJOY2dbd5T_z_I4yDxwbBJDI8OjU,875
236
235
  openrouter/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
237
236
  openrouter/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
238
- openrouter-0.0.22.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
239
- openrouter-0.0.22.dist-info/METADATA,sha256=50uVWHeME3Mwuud2KH3Czbj2cHEX9Bi-mGCb3GHBo1Y,7462
240
- openrouter-0.0.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
241
- openrouter-0.0.22.dist-info/top_level.txt,sha256=0jnlCcRirGeYZLm5ZbWQRUonIp4tTPl_9mq-ds_1SEo,11
242
- openrouter-0.0.22.dist-info/RECORD,,
237
+ openrouter-0.1.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
238
+ openrouter-0.1.1.dist-info/METADATA,sha256=GjxduvBgab2sFGvG2cwPmmznJ2eM-lxtNzneZKCZSqc,7461
239
+ openrouter-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
240
+ openrouter-0.1.1.dist-info/top_level.txt,sha256=0jnlCcRirGeYZLm5ZbWQRUonIp4tTPl_9mq-ds_1SEo,11
241
+ openrouter-0.1.1.dist-info/RECORD,,
@@ -1,93 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from openrouter.types import UnrecognizedStr
5
- from openrouter.utils import validate_open_enum
6
- from pydantic.functional_validators import PlainValidator
7
- from typing import Literal, Union
8
- from typing_extensions import Annotated, TypeAliasType
9
-
10
-
11
- Schema0Enum = Union[
12
- Literal[
13
- "AI21",
14
- "AionLabs",
15
- "Alibaba",
16
- "Amazon Bedrock",
17
- "Amazon Nova",
18
- "Anthropic",
19
- "Arcee AI",
20
- "AtlasCloud",
21
- "Avian",
22
- "Azure",
23
- "BaseTen",
24
- "BytePlus",
25
- "Black Forest Labs",
26
- "Cerebras",
27
- "Chutes",
28
- "Cirrascale",
29
- "Clarifai",
30
- "Cloudflare",
31
- "Cohere",
32
- "Crusoe",
33
- "DeepInfra",
34
- "DeepSeek",
35
- "Featherless",
36
- "Fireworks",
37
- "Friendli",
38
- "GMICloud",
39
- "GoPomelo",
40
- "Google",
41
- "Google AI Studio",
42
- "Groq",
43
- "Hyperbolic",
44
- "Inception",
45
- "InferenceNet",
46
- "Infermatic",
47
- "Inflection",
48
- "Liquid",
49
- "Mara",
50
- "Mancer 2",
51
- "Minimax",
52
- "ModelRun",
53
- "Mistral",
54
- "Modular",
55
- "Moonshot AI",
56
- "Morph",
57
- "NCompass",
58
- "Nebius",
59
- "NextBit",
60
- "Novita",
61
- "Nvidia",
62
- "OpenAI",
63
- "OpenInference",
64
- "Parasail",
65
- "Perplexity",
66
- "Phala",
67
- "Relace",
68
- "SambaNova",
69
- "SiliconFlow",
70
- "Sourceful",
71
- "Stealth",
72
- "StreamLake",
73
- "Switchpoint",
74
- "Targon",
75
- "Together",
76
- "Venice",
77
- "WandB",
78
- "Xiaomi",
79
- "xAI",
80
- "Z.AI",
81
- "FakeProvider",
82
- ],
83
- UnrecognizedStr,
84
- ]
85
-
86
-
87
- Schema0TypedDict = TypeAliasType("Schema0TypedDict", Union[Schema0Enum, str])
88
-
89
-
90
- Schema0 = TypeAliasType(
91
- "Schema0",
92
- Union[Annotated[Schema0Enum, PlainValidator(validate_open_enum(False))], str],
93
- )