mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-02 12:50:48 +08:00
chore: update OpenAPI spec from monorepo (#437)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
7010ca5c2e
commit
68b867f65c
+75
-10
@@ -9646,6 +9646,80 @@ components:
|
|||||||
- b64_json
|
- b64_json
|
||||||
- created
|
- created
|
||||||
type: object
|
type: object
|
||||||
|
ImageGenerationProviderPreferences:
|
||||||
|
description: Provider routing preferences and provider-specific passthrough configuration.
|
||||||
|
example:
|
||||||
|
allow_fallbacks: false
|
||||||
|
only:
|
||||||
|
- google-ai-studio
|
||||||
|
properties:
|
||||||
|
allow_fallbacks:
|
||||||
|
description: >
|
||||||
|
Whether to allow backup providers to serve requests
|
||||||
|
|
||||||
|
- true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the
|
||||||
|
next best provider.
|
||||||
|
|
||||||
|
- false: use only the primary/custom provider, and return the upstream error if it's unavailable.
|
||||||
|
nullable: true
|
||||||
|
type: boolean
|
||||||
|
ignore:
|
||||||
|
description: >-
|
||||||
|
List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider
|
||||||
|
settings for this request.
|
||||||
|
example:
|
||||||
|
- openai
|
||||||
|
- anthropic
|
||||||
|
items:
|
||||||
|
anyOf:
|
||||||
|
- $ref: '#/components/schemas/ProviderName'
|
||||||
|
- type: string
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
|
only:
|
||||||
|
description: >-
|
||||||
|
List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider
|
||||||
|
settings for this request.
|
||||||
|
example:
|
||||||
|
- openai
|
||||||
|
- anthropic
|
||||||
|
items:
|
||||||
|
anyOf:
|
||||||
|
- $ref: '#/components/schemas/ProviderName'
|
||||||
|
- type: string
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
|
options:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/ProviderOptions'
|
||||||
|
- example:
|
||||||
|
black-forest-labs:
|
||||||
|
guidance: 3
|
||||||
|
steps: 40
|
||||||
|
order:
|
||||||
|
description: >-
|
||||||
|
An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this
|
||||||
|
list that supports your requested model, and fall back to the next if it is unavailable. If no providers are
|
||||||
|
available, the request will fail with an error message.
|
||||||
|
example:
|
||||||
|
- openai
|
||||||
|
- anthropic
|
||||||
|
items:
|
||||||
|
anyOf:
|
||||||
|
- $ref: '#/components/schemas/ProviderName'
|
||||||
|
- type: string
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
|
sort:
|
||||||
|
anyOf:
|
||||||
|
- $ref: '#/components/schemas/ProviderSort'
|
||||||
|
- $ref: '#/components/schemas/ProviderSortConfig'
|
||||||
|
- nullable: true
|
||||||
|
description: >-
|
||||||
|
The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is
|
||||||
|
performed.
|
||||||
|
example: price
|
||||||
|
type: object
|
||||||
ImageGenerationRequest:
|
ImageGenerationRequest:
|
||||||
description: Image generation request input
|
description: Image generation request input
|
||||||
example:
|
example:
|
||||||
@@ -9722,16 +9796,7 @@ components:
|
|||||||
minLength: 1
|
minLength: 1
|
||||||
type: string
|
type: string
|
||||||
provider:
|
provider:
|
||||||
description: Provider-specific passthrough configuration
|
$ref: '#/components/schemas/ImageGenerationProviderPreferences'
|
||||||
properties:
|
|
||||||
options:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/ProviderOptions'
|
|
||||||
- example:
|
|
||||||
black-forest-labs:
|
|
||||||
guidance: 3
|
|
||||||
steps: 40
|
|
||||||
type: object
|
|
||||||
quality:
|
quality:
|
||||||
description: Rendering quality. Providers without a quality knob ignore this.
|
description: Rendering quality. Providers without a quality knob ignore this.
|
||||||
enum:
|
enum:
|
||||||
|
|||||||
Reference in New Issue
Block a user