mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-16 11:24:35 +08:00
fixes
This commit is contained in:
@@ -47,7 +47,7 @@ with OpenRouter(
|
||||
|
||||
### Response
|
||||
|
||||
**[models.ListResponse](../../models/listresponse.md)**
|
||||
**[operations.ListResponse](../../operations/listresponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
@@ -88,14 +88,14 @@ with OpenRouter(
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `name` | *str* | :heavy_check_mark: | Name for the new API key | My New API Key |
|
||||
| `limit` | *OptionalNullable[float]* | :heavy_minus_sign: | Optional spending limit for the API key in USD | 50 |
|
||||
| `limit_reset` | [OptionalNullable[models.CreateKeysLimitReset]](../../models/createkeyslimitreset.md) | :heavy_minus_sign: | Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | monthly |
|
||||
| `limit_reset` | [OptionalNullable[operations.CreateKeysLimitReset]](../../operations/createkeyslimitreset.md) | :heavy_minus_sign: | Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | monthly |
|
||||
| `include_byok_in_limit` | *Optional[bool]* | :heavy_minus_sign: | Whether to include BYOK usage in the limit | true |
|
||||
| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected | 2027-12-31T23:59:59Z |
|
||||
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | |
|
||||
|
||||
### Response
|
||||
|
||||
**[models.CreateKeysResponse](../../models/createkeysresponse.md)**
|
||||
**[operations.CreateKeysResponse](../../operations/createkeysresponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
@@ -138,13 +138,13 @@ with OpenRouter(
|
||||
| `name` | *Optional[str]* | :heavy_minus_sign: | New name for the API key | Updated API Key Name |
|
||||
| `disabled` | *Optional[bool]* | :heavy_minus_sign: | Whether to disable the API key | false |
|
||||
| `limit` | *OptionalNullable[float]* | :heavy_minus_sign: | New spending limit for the API key in USD | 75 |
|
||||
| `limit_reset` | [OptionalNullable[models.UpdateKeysLimitReset]](../../models/updatekeyslimitreset.md) | :heavy_minus_sign: | New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | daily |
|
||||
| `limit_reset` | [OptionalNullable[operations.UpdateKeysLimitReset]](../../operations/updatekeyslimitreset.md) | :heavy_minus_sign: | New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | daily |
|
||||
| `include_byok_in_limit` | *Optional[bool]* | :heavy_minus_sign: | Whether to include BYOK usage in the limit | true |
|
||||
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | |
|
||||
|
||||
### Response
|
||||
|
||||
**[models.UpdateKeysResponse](../../models/updatekeysresponse.md)**
|
||||
**[operations.UpdateKeysResponse](../../operations/updatekeysresponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
@@ -189,7 +189,7 @@ with OpenRouter(
|
||||
|
||||
### Response
|
||||
|
||||
**[models.DeleteKeysResponse](../../models/deletekeysresponse.md)**
|
||||
**[operations.DeleteKeysResponse](../../operations/deletekeysresponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
@@ -233,7 +233,7 @@ with OpenRouter(
|
||||
|
||||
### Response
|
||||
|
||||
**[models.GetKeyResponse](../../models/getkeyresponse.md)**
|
||||
**[operations.GetKeyResponse](../../operations/getkeyresponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
@@ -276,7 +276,7 @@ with OpenRouter(
|
||||
|
||||
### Response
|
||||
|
||||
**[models.GetCurrentKeyResponse](../../models/getcurrentkeyresponse.md)**
|
||||
**[operations.GetCurrentKeyResponse](../../operations/getcurrentkeyresponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user