mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-09-12 12:40:42 +08:00
chore: update OpenAPI spec from monorepo (#254)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
688c063276
commit
752156a9ad
+32
-46
@@ -3473,6 +3473,7 @@ components:
|
|||||||
- f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943
|
- f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
maxItems: 100
|
||||||
nullable: true
|
nullable: true
|
||||||
type: array
|
type: array
|
||||||
allowed_models:
|
allowed_models:
|
||||||
@@ -3480,6 +3481,7 @@ components:
|
|||||||
example: null
|
example: null
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
maxItems: 100
|
||||||
nullable: true
|
nullable: true
|
||||||
type: array
|
type: array
|
||||||
allowed_user_ids:
|
allowed_user_ids:
|
||||||
@@ -3487,6 +3489,7 @@ components:
|
|||||||
example: null
|
example: null
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
maxItems: 100
|
||||||
nullable: true
|
nullable: true
|
||||||
type: array
|
type: array
|
||||||
created_at:
|
created_at:
|
||||||
@@ -3518,9 +3521,33 @@ components:
|
|||||||
nullable: true
|
nullable: true
|
||||||
type: string
|
type: string
|
||||||
provider:
|
provider:
|
||||||
|
$ref: '#/components/schemas/BYOKProviderSlug'
|
||||||
|
sort_order:
|
||||||
|
description: Position within the provider — credentials are tried in ascending sort order.
|
||||||
|
example: 0
|
||||||
|
type: integer
|
||||||
|
workspace_id:
|
||||||
|
description: ID of the workspace this credential belongs to.
|
||||||
|
example: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- provider
|
||||||
|
- workspace_id
|
||||||
|
- label
|
||||||
|
- disabled
|
||||||
|
- is_fallback
|
||||||
|
- allowed_models
|
||||||
|
- allowed_api_key_hashes
|
||||||
|
- allowed_user_ids
|
||||||
|
- sort_order
|
||||||
|
- created_at
|
||||||
|
type: object
|
||||||
|
BYOKProviderSlug:
|
||||||
description: >-
|
description: >-
|
||||||
The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`,
|
The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`,
|
||||||
`anthropic`, `amazon-bedrock`).
|
`amazon-bedrock`).
|
||||||
enum:
|
enum:
|
||||||
- ai21
|
- ai21
|
||||||
- aion-labs
|
- aion-labs
|
||||||
@@ -3604,28 +3631,6 @@ components:
|
|||||||
- z-ai
|
- z-ai
|
||||||
example: openai
|
example: openai
|
||||||
type: string
|
type: string
|
||||||
sort_order:
|
|
||||||
description: Position within the provider — credentials are tried in ascending sort order.
|
|
||||||
example: 0
|
|
||||||
type: integer
|
|
||||||
workspace_id:
|
|
||||||
description: ID of the workspace this credential belongs to.
|
|
||||||
example: 550e8400-e29b-41d4-a716-446655440000
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- id
|
|
||||||
- provider
|
|
||||||
- workspace_id
|
|
||||||
- label
|
|
||||||
- disabled
|
|
||||||
- is_fallback
|
|
||||||
- allowed_models
|
|
||||||
- allowed_api_key_hashes
|
|
||||||
- allowed_user_ids
|
|
||||||
- sort_order
|
|
||||||
- created_at
|
|
||||||
type: object
|
|
||||||
ChatAssistantImages:
|
ChatAssistantImages:
|
||||||
description: Generated images from image generation models
|
description: Generated images from image generation models
|
||||||
example:
|
example:
|
||||||
@@ -19759,8 +19764,7 @@ paths:
|
|||||||
/byok/{id}:
|
/byok/{id}:
|
||||||
get:
|
get:
|
||||||
description: >-
|
description: >-
|
||||||
Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's
|
Get a single bring-your-own-key (BYOK) provider credential by its `id`. [Management
|
||||||
default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management
|
|
||||||
key](/docs/guides/overview/auth/management-api-keys) required.
|
key](/docs/guides/overview/auth/management-api-keys) required.
|
||||||
operationId: getBYOKKey
|
operationId: getBYOKKey
|
||||||
parameters:
|
parameters:
|
||||||
@@ -19773,15 +19777,6 @@ paths:
|
|||||||
example: 11111111-2222-3333-4444-555555555555
|
example: 11111111-2222-3333-4444-555555555555
|
||||||
format: uuid
|
format: uuid
|
||||||
type: string
|
type: string
|
||||||
- description: Optional workspace ID. Defaults to the authenticated entity's default workspace.
|
|
||||||
in: query
|
|
||||||
name: workspace_id
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
description: Optional workspace ID. Defaults to the authenticated entity's default workspace.
|
|
||||||
example: 550e8400-e29b-41d4-a716-446655440000
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
content:
|
content:
|
||||||
@@ -24258,8 +24253,8 @@ paths:
|
|||||||
/observability/destinations/{id}:
|
/observability/destinations/{id}:
|
||||||
get:
|
get:
|
||||||
description: >-
|
description: >-
|
||||||
Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace —
|
Fetch a single observability destination by its UUID. [Management
|
||||||
use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
key](/docs/guides/overview/auth/management-api-keys) required.
|
||||||
operationId: getObservabilityDestination
|
operationId: getObservabilityDestination
|
||||||
parameters:
|
parameters:
|
||||||
- description: The destination ID (UUID).
|
- description: The destination ID (UUID).
|
||||||
@@ -24271,15 +24266,6 @@ paths:
|
|||||||
example: 99999999-aaaa-bbbb-cccc-dddddddddddd
|
example: 99999999-aaaa-bbbb-cccc-dddddddddddd
|
||||||
format: uuid
|
format: uuid
|
||||||
type: string
|
type: string
|
||||||
- description: Optional workspace ID. Defaults to the authenticated entity's default workspace.
|
|
||||||
in: query
|
|
||||||
name: workspace_id
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
description: Optional workspace ID. Defaults to the authenticated entity's default workspace.
|
|
||||||
example: 550e8400-e29b-41d4-a716-446655440000
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
content:
|
content:
|
||||||
|
|||||||
Reference in New Issue
Block a user