openrouter 0.0.14__py3-none-any.whl → 0.0.16__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.
openrouter/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "openrouter"
6
- __version__: str = "0.0.14"
6
+ __version__: str = "0.0.16"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
- __gen_version__: str = "2.753.6"
9
- __user_agent__: str = "speakeasy-sdk/python 0.0.14 2.753.6 1.0.0 openrouter"
8
+ __gen_version__: str = "2.755.6"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.0.16 2.755.6 1.0.0 openrouter"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
openrouter/analytics.py CHANGED
@@ -6,7 +6,7 @@ from openrouter._hooks import HookContext
6
6
  from openrouter.types import OptionalNullable, UNSET
7
7
  from openrouter.utils import get_security_from_env
8
8
  from openrouter.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, List, Mapping, Optional
9
+ from typing import Any, Mapping, Optional
10
10
 
11
11
 
12
12
  class Analytics(BaseSDK):
@@ -20,7 +20,7 @@ class Analytics(BaseSDK):
20
20
  server_url: Optional[str] = None,
21
21
  timeout_ms: Optional[int] = None,
22
22
  http_headers: Optional[Mapping[str, str]] = None,
23
- ) -> List[components.ActivityItem]:
23
+ ) -> operations.GetUserActivityResponse:
24
24
  r"""Get user activity grouped by endpoint
25
25
 
26
26
  Returns user activity data grouped by endpoint for the last 30 (completed) UTC days
@@ -128,7 +128,7 @@ class Analytics(BaseSDK):
128
128
  server_url: Optional[str] = None,
129
129
  timeout_ms: Optional[int] = None,
130
130
  http_headers: Optional[Mapping[str, str]] = None,
131
- ) -> List[components.ActivityItem]:
131
+ ) -> operations.GetUserActivityResponse:
132
132
  r"""Get user activity grouped by endpoint
133
133
 
134
134
  Returns user activity data grouped by endpoint for the last 30 (completed) UTC days
openrouter/api_keys.py CHANGED
@@ -7,7 +7,7 @@ from openrouter._hooks import HookContext
7
7
  from openrouter.types import OptionalNullable, UNSET
8
8
  from openrouter.utils import get_security_from_env
9
9
  from openrouter.utils.unmarshal_json_response import unmarshal_json_response
10
- from typing import Any, List, Mapping, Optional
10
+ from typing import Any, Mapping, Optional
11
11
 
12
12
 
13
13
  class APIKeys(BaseSDK):
@@ -22,7 +22,7 @@ class APIKeys(BaseSDK):
22
22
  server_url: Optional[str] = None,
23
23
  timeout_ms: Optional[int] = None,
24
24
  http_headers: Optional[Mapping[str, str]] = None,
25
- ) -> List[operations.ListData]:
25
+ ) -> operations.ListResponse:
26
26
  r"""List API keys
27
27
 
28
28
  :param include_disabled: Whether to include disabled API keys in the response
@@ -126,7 +126,7 @@ class APIKeys(BaseSDK):
126
126
  server_url: Optional[str] = None,
127
127
  timeout_ms: Optional[int] = None,
128
128
  http_headers: Optional[Mapping[str, str]] = None,
129
- ) -> List[operations.ListData]:
129
+ ) -> operations.ListResponse:
130
130
  r"""List API keys
131
131
 
132
132
  :param include_disabled: Whether to include disabled API keys in the response
@@ -233,7 +233,7 @@ class APIKeys(BaseSDK):
233
233
  server_url: Optional[str] = None,
234
234
  timeout_ms: Optional[int] = None,
235
235
  http_headers: Optional[Mapping[str, str]] = None,
236
- ) -> operations.CreateKeysData:
236
+ ) -> operations.CreateKeysResponse:
237
237
  r"""Create a new API key
238
238
 
239
239
  :param name: Name for the new API key
@@ -354,7 +354,7 @@ class APIKeys(BaseSDK):
354
354
  server_url: Optional[str] = None,
355
355
  timeout_ms: Optional[int] = None,
356
356
  http_headers: Optional[Mapping[str, str]] = None,
357
- ) -> operations.CreateKeysData:
357
+ ) -> operations.CreateKeysResponse:
358
358
  r"""Create a new API key
359
359
 
360
360
  :param name: Name for the new API key
@@ -476,7 +476,7 @@ class APIKeys(BaseSDK):
476
476
  server_url: Optional[str] = None,
477
477
  timeout_ms: Optional[int] = None,
478
478
  http_headers: Optional[Mapping[str, str]] = None,
479
- ) -> operations.UpdateKeysData:
479
+ ) -> operations.UpdateKeysResponse:
480
480
  r"""Update an API key
481
481
 
482
482
  :param hash: The hash identifier of the API key to update
@@ -607,7 +607,7 @@ class APIKeys(BaseSDK):
607
607
  server_url: Optional[str] = None,
608
608
  timeout_ms: Optional[int] = None,
609
609
  http_headers: Optional[Mapping[str, str]] = None,
610
- ) -> operations.UpdateKeysData:
610
+ ) -> operations.UpdateKeysResponse:
611
611
  r"""Update an API key
612
612
 
613
613
  :param hash: The hash identifier of the API key to update
@@ -945,7 +945,7 @@ class APIKeys(BaseSDK):
945
945
  server_url: Optional[str] = None,
946
946
  timeout_ms: Optional[int] = None,
947
947
  http_headers: Optional[Mapping[str, str]] = None,
948
- ) -> operations.GetKeyData:
948
+ ) -> operations.GetKeyResponse:
949
949
  r"""Get a single API key
950
950
 
951
951
  :param hash: The hash identifier of the API key to retrieve
@@ -1051,7 +1051,7 @@ class APIKeys(BaseSDK):
1051
1051
  server_url: Optional[str] = None,
1052
1052
  timeout_ms: Optional[int] = None,
1053
1053
  http_headers: Optional[Mapping[str, str]] = None,
1054
- ) -> operations.GetKeyData:
1054
+ ) -> operations.GetKeyResponse:
1055
1055
  r"""Get a single API key
1056
1056
 
1057
1057
  :param hash: The hash identifier of the API key to retrieve
@@ -1156,7 +1156,7 @@ class APIKeys(BaseSDK):
1156
1156
  server_url: Optional[str] = None,
1157
1157
  timeout_ms: Optional[int] = None,
1158
1158
  http_headers: Optional[Mapping[str, str]] = None,
1159
- ) -> operations.GetCurrentKeyData:
1159
+ ) -> operations.GetCurrentKeyResponse:
1160
1160
  r"""Get current API key
1161
1161
 
1162
1162
  Get information on the API key associated with the current authentication session
@@ -1247,7 +1247,7 @@ class APIKeys(BaseSDK):
1247
1247
  server_url: Optional[str] = None,
1248
1248
  timeout_ms: Optional[int] = None,
1249
1249
  http_headers: Optional[Mapping[str, str]] = None,
1250
- ) -> operations.GetCurrentKeyData:
1250
+ ) -> operations.GetCurrentKeyResponse:
1251
1251
  r"""Get current API key
1252
1252
 
1253
1253
  Get information on the API key associated with the current authentication session
openrouter/credits.py CHANGED
@@ -218,7 +218,7 @@ class Credits(BaseSDK):
218
218
  server_url: Optional[str] = None,
219
219
  timeout_ms: Optional[int] = None,
220
220
  http_headers: Optional[Mapping[str, str]] = None,
221
- ) -> operations.CreateCoinbaseChargeData:
221
+ ) -> operations.CreateCoinbaseChargeResponse:
222
222
  r"""Create a Coinbase charge for crypto payment
223
223
 
224
224
  Create a Coinbase charge for crypto payment
@@ -342,7 +342,7 @@ class Credits(BaseSDK):
342
342
  server_url: Optional[str] = None,
343
343
  timeout_ms: Optional[int] = None,
344
344
  http_headers: Optional[Mapping[str, str]] = None,
345
- ) -> operations.CreateCoinbaseChargeData:
345
+ ) -> operations.CreateCoinbaseChargeResponse:
346
346
  r"""Create a Coinbase charge for crypto payment
347
347
 
348
348
  Create a Coinbase charge for crypto payment
openrouter/embeddings.py CHANGED
@@ -7,7 +7,7 @@ from openrouter._hooks import HookContext
7
7
  from openrouter.types import OptionalNullable, UNSET
8
8
  from openrouter.utils import get_security_from_env
9
9
  from openrouter.utils.unmarshal_json_response import unmarshal_json_response
10
- from typing import Any, List, Mapping, Optional, Union
10
+ from typing import Any, Mapping, Optional, Union
11
11
 
12
12
 
13
13
  class GenerateAcceptEnum(str, Enum):
@@ -391,7 +391,7 @@ class Embeddings(BaseSDK):
391
391
  server_url: Optional[str] = None,
392
392
  timeout_ms: Optional[int] = None,
393
393
  http_headers: Optional[Mapping[str, str]] = None,
394
- ) -> List[components.Model]:
394
+ ) -> components.ModelsListResponse:
395
395
  r"""List all embeddings models
396
396
 
397
397
  Returns a list of all available embeddings models and their properties
@@ -482,7 +482,7 @@ class Embeddings(BaseSDK):
482
482
  server_url: Optional[str] = None,
483
483
  timeout_ms: Optional[int] = None,
484
484
  http_headers: Optional[Mapping[str, str]] = None,
485
- ) -> List[components.Model]:
485
+ ) -> components.ModelsListResponse:
486
486
  r"""List all embeddings models
487
487
 
488
488
  Returns a list of all available embeddings models and their properties
openrouter/endpoints.py CHANGED
@@ -6,7 +6,7 @@ from openrouter._hooks import HookContext
6
6
  from openrouter.types import OptionalNullable, UNSET
7
7
  from openrouter.utils import get_security_from_env
8
8
  from openrouter.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, List, Mapping, Optional
9
+ from typing import Any, Mapping, Optional
10
10
 
11
11
 
12
12
  class Endpoints(BaseSDK):
@@ -21,7 +21,7 @@ class Endpoints(BaseSDK):
21
21
  server_url: Optional[str] = None,
22
22
  timeout_ms: Optional[int] = None,
23
23
  http_headers: Optional[Mapping[str, str]] = None,
24
- ) -> components.ListEndpointsResponse:
24
+ ) -> operations.ListEndpointsResponse:
25
25
  r"""List all endpoints for a model
26
26
 
27
27
  :param author:
@@ -120,7 +120,7 @@ class Endpoints(BaseSDK):
120
120
  server_url: Optional[str] = None,
121
121
  timeout_ms: Optional[int] = None,
122
122
  http_headers: Optional[Mapping[str, str]] = None,
123
- ) -> components.ListEndpointsResponse:
123
+ ) -> operations.ListEndpointsResponse:
124
124
  r"""List all endpoints for a model
125
125
 
126
126
  :param author:
@@ -217,7 +217,7 @@ class Endpoints(BaseSDK):
217
217
  server_url: Optional[str] = None,
218
218
  timeout_ms: Optional[int] = None,
219
219
  http_headers: Optional[Mapping[str, str]] = None,
220
- ) -> List[components.PublicEndpoint]:
220
+ ) -> operations.ListEndpointsZdrResponse:
221
221
  r"""Preview the impact of ZDR on the available endpoints
222
222
 
223
223
  :param retries: Override the default retry configuration for this method
@@ -303,7 +303,7 @@ class Endpoints(BaseSDK):
303
303
  server_url: Optional[str] = None,
304
304
  timeout_ms: Optional[int] = None,
305
305
  http_headers: Optional[Mapping[str, str]] = None,
306
- ) -> List[components.PublicEndpoint]:
306
+ ) -> operations.ListEndpointsZdrResponse:
307
307
  r"""Preview the impact of ZDR on the available endpoints
308
308
 
309
309
  :param retries: Override the default retry configuration for this method
openrouter/generations.py CHANGED
@@ -20,7 +20,7 @@ class Generations(BaseSDK):
20
20
  server_url: Optional[str] = None,
21
21
  timeout_ms: Optional[int] = None,
22
22
  http_headers: Optional[Mapping[str, str]] = None,
23
- ) -> operations.GetGenerationData:
23
+ ) -> operations.GetGenerationResponse:
24
24
  r"""Get request & usage metadata for a generation
25
25
 
26
26
  :param id:
@@ -157,7 +157,7 @@ class Generations(BaseSDK):
157
157
  server_url: Optional[str] = None,
158
158
  timeout_ms: Optional[int] = None,
159
159
  http_headers: Optional[Mapping[str, str]] = None,
160
- ) -> operations.GetGenerationData:
160
+ ) -> operations.GetGenerationResponse:
161
161
  r"""Get request & usage metadata for a generation
162
162
 
163
163
  :param id:
openrouter/models_.py CHANGED
@@ -6,7 +6,7 @@ from openrouter._hooks import HookContext
6
6
  from openrouter.types import OptionalNullable, UNSET
7
7
  from openrouter.utils import get_security_from_env
8
8
  from openrouter.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, List, Mapping, Optional, Union
9
+ from typing import Any, Mapping, Optional, Union
10
10
 
11
11
 
12
12
  class Models(BaseSDK):
@@ -19,7 +19,7 @@ class Models(BaseSDK):
19
19
  server_url: Optional[str] = None,
20
20
  timeout_ms: Optional[int] = None,
21
21
  http_headers: Optional[Mapping[str, str]] = None,
22
- ) -> components.ModelsCountResponseData:
22
+ ) -> components.ModelsCountResponse:
23
23
  r"""Get total count of available models
24
24
 
25
25
  :param retries: Override the default retry configuration for this method
@@ -103,7 +103,7 @@ class Models(BaseSDK):
103
103
  server_url: Optional[str] = None,
104
104
  timeout_ms: Optional[int] = None,
105
105
  http_headers: Optional[Mapping[str, str]] = None,
106
- ) -> components.ModelsCountResponseData:
106
+ ) -> components.ModelsCountResponse:
107
107
  r"""Get total count of available models
108
108
 
109
109
  :param retries: Override the default retry configuration for this method
@@ -189,7 +189,7 @@ class Models(BaseSDK):
189
189
  server_url: Optional[str] = None,
190
190
  timeout_ms: Optional[int] = None,
191
191
  http_headers: Optional[Mapping[str, str]] = None,
192
- ) -> List[components.Model]:
192
+ ) -> components.ModelsListResponse:
193
193
  r"""List all models and their properties
194
194
 
195
195
  :param category:
@@ -288,7 +288,7 @@ class Models(BaseSDK):
288
288
  server_url: Optional[str] = None,
289
289
  timeout_ms: Optional[int] = None,
290
290
  http_headers: Optional[Mapping[str, str]] = None,
291
- ) -> List[components.Model]:
291
+ ) -> components.ModelsListResponse:
292
292
  r"""List all models and their properties
293
293
 
294
294
  :param category:
@@ -389,7 +389,7 @@ class Models(BaseSDK):
389
389
  server_url: Optional[str] = None,
390
390
  timeout_ms: Optional[int] = None,
391
391
  http_headers: Optional[Mapping[str, str]] = None,
392
- ) -> List[components.Model]:
392
+ ) -> components.ModelsListResponse:
393
393
  r"""List models filtered by user provider preferences
394
394
 
395
395
  :param security:
@@ -483,7 +483,7 @@ class Models(BaseSDK):
483
483
  server_url: Optional[str] = None,
484
484
  timeout_ms: Optional[int] = None,
485
485
  http_headers: Optional[Mapping[str, str]] = None,
486
- ) -> List[components.Model]:
486
+ ) -> components.ModelsListResponse:
487
487
  r"""List models filtered by user provider preferences
488
488
 
489
489
  :param security:
openrouter/oauth.py CHANGED
@@ -267,7 +267,7 @@ class OAuth(BaseSDK):
267
267
  server_url: Optional[str] = None,
268
268
  timeout_ms: Optional[int] = None,
269
269
  http_headers: Optional[Mapping[str, str]] = None,
270
- ) -> operations.CreateAuthKeysCodeData:
270
+ ) -> operations.CreateAuthKeysCodeResponse:
271
271
  r"""Create authorization code
272
272
 
273
273
  Create an authorization code for the PKCE flow to generate a user-controlled API key
@@ -389,7 +389,7 @@ class OAuth(BaseSDK):
389
389
  server_url: Optional[str] = None,
390
390
  timeout_ms: Optional[int] = None,
391
391
  http_headers: Optional[Mapping[str, str]] = None,
392
- ) -> operations.CreateAuthKeysCodeData:
392
+ ) -> operations.CreateAuthKeysCodeResponse:
393
393
  r"""Create authorization code
394
394
 
395
395
  Create an authorization code for the PKCE flow to generate a user-controlled API key
openrouter/parameters.py CHANGED
@@ -25,7 +25,7 @@ class Parameters(BaseSDK):
25
25
  server_url: Optional[str] = None,
26
26
  timeout_ms: Optional[int] = None,
27
27
  http_headers: Optional[Mapping[str, str]] = None,
28
- ) -> operations.GetParametersData:
28
+ ) -> operations.GetParametersResponse:
29
29
  r"""Get a model's supported parameters and data about which are most popular
30
30
 
31
31
  :param security:
@@ -136,7 +136,7 @@ class Parameters(BaseSDK):
136
136
  server_url: Optional[str] = None,
137
137
  timeout_ms: Optional[int] = None,
138
138
  http_headers: Optional[Mapping[str, str]] = None,
139
- ) -> operations.GetParametersData:
139
+ ) -> operations.GetParametersResponse:
140
140
  r"""Get a model's supported parameters and data about which are most popular
141
141
 
142
142
  :param security:
openrouter/providers.py CHANGED
@@ -6,7 +6,7 @@ from openrouter._hooks import HookContext
6
6
  from openrouter.types import OptionalNullable, UNSET
7
7
  from openrouter.utils import get_security_from_env
8
8
  from openrouter.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, List, Mapping, Optional
9
+ from typing import Any, Mapping, Optional
10
10
 
11
11
 
12
12
  class Providers(BaseSDK):
@@ -19,7 +19,7 @@ class Providers(BaseSDK):
19
19
  server_url: Optional[str] = None,
20
20
  timeout_ms: Optional[int] = None,
21
21
  http_headers: Optional[Mapping[str, str]] = None,
22
- ) -> List[operations.ListProvidersData]:
22
+ ) -> operations.ListProvidersResponse:
23
23
  r"""List all providers
24
24
 
25
25
  :param retries: Override the default retry configuration for this method
@@ -103,7 +103,7 @@ class Providers(BaseSDK):
103
103
  server_url: Optional[str] = None,
104
104
  timeout_ms: Optional[int] = None,
105
105
  http_headers: Optional[Mapping[str, str]] = None,
106
- ) -> List[operations.ListProvidersData]:
106
+ ) -> operations.ListProvidersResponse:
107
107
  r"""List all providers
108
108
 
109
109
  :param retries: Override the default retry configuration for this method
@@ -1,12 +1,26 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
- from typing import Any, Optional
3
+ from typing import Any, Optional, Type, TypeVar, overload
4
4
 
5
5
  import httpx
6
6
 
7
7
  from .serializers import unmarshal_json
8
8
  from openrouter import errors
9
9
 
10
+ T = TypeVar("T")
11
+
12
+
13
+ @overload
14
+ def unmarshal_json_response(
15
+ typ: Type[T], http_res: httpx.Response, body: Optional[str] = None
16
+ ) -> T: ...
17
+
18
+
19
+ @overload
20
+ def unmarshal_json_response(
21
+ typ: Any, http_res: httpx.Response, body: Optional[str] = None
22
+ ) -> Any: ...
23
+
10
24
 
11
25
  def unmarshal_json_response(
12
26
  typ: Any, http_res: httpx.Response, body: Optional[str] = None
@@ -1,15 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openrouter
3
- Version: 0.0.14
3
+ Version: 0.0.16
4
4
  Summary: Official Python Client SDK for OpenRouter.
5
5
  Author: OpenRouter
6
+ Project-URL: repository, https://github.com/OpenRouterTeam/python-sdk.git
6
7
  Requires-Python: >=3.9.2
7
8
  Description-Content-Type: text/markdown
9
+ License-File: LICENSE
8
10
  Requires-Dist: httpcore>=1.0.9
9
11
  Requires-Dist: httpx>=0.28.1
10
12
  Requires-Dist: pydantic>=2.11.2
11
-
12
- ![hero illustration](./assets/banner.png)
13
+ Dynamic: license-file
13
14
 
14
15
  # OpenRouter SDK (Beta)
15
16
 
@@ -1,20 +1,20 @@
1
1
  openrouter/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
2
- openrouter/_version.py,sha256=VJRVqdMVEbx59vlL7lI5cfWPd61n32m8hXwhZDQ-H9I,464
3
- openrouter/analytics.py,sha256=NUTJKlNJVhaes_ia7Evd0RBsHNqcT3ImWbqAF4HjvXQ,9717
4
- openrouter/api_keys.py,sha256=LwhHwAKDvffDkXpT4mNNH1R04YF8bUEZQ8zXbkpbTxg,57066
2
+ openrouter/_version.py,sha256=17g5J17WLn52coEFiGYy9T2HVxhsN-DCvU6MV1Aysvc,464
3
+ openrouter/analytics.py,sha256=fzxJSr3HBmiWLYe_UOdsl_WpaJG7vwxJaZTC66UJEPA,9721
4
+ openrouter/api_keys.py,sha256=lSwv9L_xgWVb6qco7mAwPaSnlJ_lo4Jlev-bkgp3m8w,57088
5
5
  openrouter/basesdk.py,sha256=A-YAEwrsQAFwE193kKxOg8W9lsST4zlH8YKDTqMzDkM,12333
6
6
  openrouter/beta.py,sha256=MzJTf7x1qwLAR2nd5Y4yzD8bIQCOsREEPf8uhwune_U,668
7
7
  openrouter/chat.py,sha256=2dFoQ4PFAZ9QqvmSMzEBisa3l2DFL6vwHwqeaki70YY,30941
8
8
  openrouter/completions.py,sha256=VDcrnsOrZ-AcQByV1HmufsQ7A4xyFEiuzQ5Hnzgmdu4,14204
9
- openrouter/credits.py,sha256=6Ub-Hf0DZMCZM7zI4rPd6pgiPkiGJuSBWZgmo8bPDaM,18764
10
- openrouter/embeddings.py,sha256=1pwfkSrZAVmbAeNMa0MDkWULcQVXJoD5wTREEKJyxnk,23799
11
- openrouter/endpoints.py,sha256=37TJopBoN0aZny08i1ttuz3gxHU86B3dzXkV3A_xR0c,15374
12
- openrouter/generations.py,sha256=1oIcvf0gTXNHiPqBQMqjrALPvYI1NP-2b1CDEfbRATU,12012
9
+ openrouter/credits.py,sha256=gaVD-KBR7WvJTvdtz3eKjXmrP-LGCjehYWHthq3hkpU,18772
10
+ openrouter/embeddings.py,sha256=30-trrBXERCzcJeP8XtCROIooVvRabikBd72Z9rsWHA,23807
11
+ openrouter/endpoints.py,sha256=Ifs_oM1mRlWb4D17qAi9dZwEDZeKpywGaEPb_ju6wzo,15376
12
+ openrouter/generations.py,sha256=5ZVXEFLLZXC2nATJ-VFge4bpzpliW0ar_qipPqq1BVA,12020
13
13
  openrouter/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
14
- openrouter/models_.py,sha256=wOpbrdwl_nRNX3W9Y3cfv4CbNxr9d4s9iJtuE0F0ws4,23209
15
- openrouter/oauth.py,sha256=SBlCNRkjFSI89GaUwopakZISEXsuk9xpXIH3yX44eRE,21324
16
- openrouter/parameters.py,sha256=CTi69cZbmcUjMXn9FWw9YkPOGuvH09Ii_2CBfp1w7ok,9568
17
- openrouter/providers.py,sha256=rIL2p44zckdufCwsTgvYz2twAVf4g1i9tE5RVME1vHw,7352
14
+ openrouter/models_.py,sha256=8_dqs_2zCdiG52q0fzICo3dOgBXf0xTXhs7HaN8NMLQ,23223
15
+ openrouter/oauth.py,sha256=Tu0Wec3rSdE6GlacXJClWmV496Kl8ZVxfPd6yswU6h4,21332
16
+ openrouter/parameters.py,sha256=HH5N8IuyAKHScwaYwbdC14OD52AMd4BrNHjlXpZhGlE,9576
17
+ openrouter/providers.py,sha256=fiM6jch1DZyTd940GuP4Swy8obL8MjCrLCfraDICs8c,7342
18
18
  openrouter/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
19
19
  openrouter/responses.py,sha256=CY3eFV95wHh9CSjwtVQrWDYO0iWtbROO8nzoN7bJsXY,50759
20
20
  openrouter/sdk.py,sha256=GEj_sKoLCrmrqBoapA3MHT2rR0cNni-to6totkL_ChY,8580
@@ -225,10 +225,11 @@ openrouter/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ
225
225
  openrouter/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
226
226
  openrouter/utils/security.py,sha256=k3p0ma6HKapq-eK6WPNjfglReZ5HEs3YggbSTLBnR5A,6014
227
227
  openrouter/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0HwvOE,5999
228
- openrouter/utils/unmarshal_json_response.py,sha256=ZJq7wbfssruM6Z_8XWvt5iIiDEXvEfmH2B4o-SQzGss,586
228
+ openrouter/utils/unmarshal_json_response.py,sha256=glq_wLEH2vSvfMedJOY2dbd5T_z_I4yDxwbBJDI8OjU,875
229
229
  openrouter/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
230
230
  openrouter/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
231
- openrouter-0.0.14.dist-info/METADATA,sha256=7OafBMdmmwD6KGyLf1-4K4u7WipZjPwHNOnBDR8QJb8,7367
232
- openrouter-0.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
233
- openrouter-0.0.14.dist-info/top_level.txt,sha256=0jnlCcRirGeYZLm5ZbWQRUonIp4tTPl_9mq-ds_1SEo,11
234
- openrouter-0.0.14.dist-info/RECORD,,
231
+ openrouter-0.0.16.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
232
+ openrouter-0.0.16.dist-info/METADATA,sha256=SsbxxJ6CfDZlZ4Mou4eUGjErAjkj5PBulk9v3plI1XM,7442
233
+ openrouter-0.0.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
234
+ openrouter-0.0.16.dist-info/top_level.txt,sha256=0jnlCcRirGeYZLm5ZbWQRUonIp4tTPl_9mq-ds_1SEo,11
235
+ openrouter-0.0.16.dist-info/RECORD,,
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.