mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-09-09 11:27:54 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec9bc9225c |
@@ -1057,33 +1057,6 @@ components:
|
|||||||
- type
|
- type
|
||||||
- data
|
- data
|
||||||
type: object
|
type: object
|
||||||
AnthropicRefusalStopDetails:
|
|
||||||
description: Structured information about a refusal
|
|
||||||
example:
|
|
||||||
category: cyber
|
|
||||||
explanation: The request was refused due to policy.
|
|
||||||
type: refusal
|
|
||||||
nullable: true
|
|
||||||
properties:
|
|
||||||
category:
|
|
||||||
enum:
|
|
||||||
- cyber
|
|
||||||
- bio
|
|
||||||
- null
|
|
||||||
nullable: true
|
|
||||||
type: string
|
|
||||||
explanation:
|
|
||||||
nullable: true
|
|
||||||
type: string
|
|
||||||
type:
|
|
||||||
enum:
|
|
||||||
- refusal
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
- category
|
|
||||||
- explanation
|
|
||||||
type: object
|
|
||||||
AnthropicSearchResultBlockParam:
|
AnthropicSearchResultBlockParam:
|
||||||
example:
|
example:
|
||||||
content:
|
content:
|
||||||
@@ -2342,7 +2315,6 @@ components:
|
|||||||
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
||||||
model: claude-sonnet-4-5-20250929
|
model: claude-sonnet-4-5-20250929
|
||||||
role: assistant
|
role: assistant
|
||||||
stop_details: null
|
|
||||||
stop_reason: end_turn
|
stop_reason: end_turn
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message
|
type: message
|
||||||
@@ -2366,8 +2338,6 @@ components:
|
|||||||
enum:
|
enum:
|
||||||
- assistant
|
- assistant
|
||||||
type: string
|
type: string
|
||||||
stop_details:
|
|
||||||
$ref: '#/components/schemas/AnthropicRefusalStopDetails'
|
|
||||||
stop_reason:
|
stop_reason:
|
||||||
$ref: '#/components/schemas/ORAnthropicStopReason'
|
$ref: '#/components/schemas/ORAnthropicStopReason'
|
||||||
stop_sequence:
|
stop_sequence:
|
||||||
@@ -2405,7 +2375,6 @@ components:
|
|||||||
- content
|
- content
|
||||||
- model
|
- model
|
||||||
- stop_reason
|
- stop_reason
|
||||||
- stop_details
|
|
||||||
- stop_sequence
|
- stop_sequence
|
||||||
- usage
|
- usage
|
||||||
type: object
|
type: object
|
||||||
@@ -5416,24 +5385,6 @@ components:
|
|||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
FrameImage:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/ContentPartImage'
|
|
||||||
- properties:
|
|
||||||
frame_type:
|
|
||||||
description: Whether this image represents the first or last frame of the video
|
|
||||||
enum:
|
|
||||||
- first_frame
|
|
||||||
- last_frame
|
|
||||||
example: first_frame
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- frame_type
|
|
||||||
type: object
|
|
||||||
example:
|
|
||||||
image_url:
|
|
||||||
url: https://example.com/image.png
|
|
||||||
type: image_url
|
|
||||||
FunctionCallArgsDeltaEvent:
|
FunctionCallArgsDeltaEvent:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/BaseFunctionCallArgsDeltaEvent'
|
- $ref: '#/components/schemas/BaseFunctionCallArgsDeltaEvent'
|
||||||
@@ -6786,7 +6737,6 @@ components:
|
|||||||
description: Event sent when the message metadata changes (e.g., stop_reason)
|
description: Event sent when the message metadata changes (e.g., stop_reason)
|
||||||
example:
|
example:
|
||||||
delta:
|
delta:
|
||||||
stop_details: null
|
|
||||||
stop_reason: end_turn
|
stop_reason: end_turn
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message_delta
|
type: message_delta
|
||||||
@@ -6797,8 +6747,6 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
container:
|
container:
|
||||||
$ref: '#/components/schemas/AnthropicContainer'
|
$ref: '#/components/schemas/AnthropicContainer'
|
||||||
stop_details:
|
|
||||||
$ref: '#/components/schemas/AnthropicRefusalStopDetails'
|
|
||||||
stop_reason:
|
stop_reason:
|
||||||
$ref: '#/components/schemas/ORAnthropicStopReason'
|
$ref: '#/components/schemas/ORAnthropicStopReason'
|
||||||
stop_sequence:
|
stop_sequence:
|
||||||
@@ -6806,7 +6754,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- container
|
- container
|
||||||
- stop_details
|
|
||||||
- stop_reason
|
- stop_reason
|
||||||
- stop_sequence
|
- stop_sequence
|
||||||
type: object
|
type: object
|
||||||
@@ -7590,7 +7537,6 @@ components:
|
|||||||
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
||||||
model: claude-sonnet-4-5-20250929
|
model: claude-sonnet-4-5-20250929
|
||||||
role: assistant
|
role: assistant
|
||||||
stop_details: null
|
|
||||||
stop_reason: end_turn
|
stop_reason: end_turn
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message
|
type: message
|
||||||
@@ -7611,7 +7557,6 @@ components:
|
|||||||
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
||||||
model: claude-sonnet-4-5-20250929
|
model: claude-sonnet-4-5-20250929
|
||||||
role: assistant
|
role: assistant
|
||||||
stop_details: null
|
|
||||||
stop_reason: null
|
stop_reason: null
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message
|
type: message
|
||||||
@@ -7743,8 +7688,6 @@ components:
|
|||||||
enum:
|
enum:
|
||||||
- assistant
|
- assistant
|
||||||
type: string
|
type: string
|
||||||
stop_details:
|
|
||||||
$ref: '#/components/schemas/AnthropicRefusalStopDetails'
|
|
||||||
stop_reason:
|
stop_reason:
|
||||||
nullable: true
|
nullable: true
|
||||||
stop_sequence:
|
stop_sequence:
|
||||||
@@ -7781,7 +7724,6 @@ components:
|
|||||||
- content
|
- content
|
||||||
- model
|
- model
|
||||||
- stop_reason
|
- stop_reason
|
||||||
- stop_details
|
|
||||||
- stop_sequence
|
- stop_sequence
|
||||||
- usage
|
- usage
|
||||||
type: object
|
type: object
|
||||||
@@ -12167,17 +12109,10 @@ components:
|
|||||||
exclusiveMinimum: true
|
exclusiveMinimum: true
|
||||||
minimum: 0
|
minimum: 0
|
||||||
type: integer
|
type: integer
|
||||||
frame_images:
|
|
||||||
description: >-
|
|
||||||
Images to use as the first and/or last frame of the generated video. Each image must specify a frame_type of
|
|
||||||
first_frame or last_frame.
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/FrameImage'
|
|
||||||
type: array
|
|
||||||
generate_audio:
|
generate_audio:
|
||||||
description: >-
|
description: >-
|
||||||
Whether to generate audio alongside the video. Defaults to the endpoint's generate_audio capability flag,
|
Whether to generate audio alongside the video. Defaults to true for models that support audio output, false
|
||||||
false if not set.
|
otherwise.
|
||||||
example: true
|
example: true
|
||||||
type: boolean
|
type: boolean
|
||||||
input_references:
|
input_references:
|
||||||
@@ -12701,12 +12636,10 @@ components:
|
|||||||
canonical_slug: google/veo-3.1
|
canonical_slug: google/veo-3.1
|
||||||
created: 1700000000
|
created: 1700000000
|
||||||
description: Google video generation model
|
description: Google video generation model
|
||||||
generate_audio: true
|
|
||||||
id: google/veo-3.1
|
id: google/veo-3.1
|
||||||
name: Veo 3.1
|
name: Veo 3.1
|
||||||
pricing_skus:
|
pricing_skus:
|
||||||
generate: '0.50'
|
generate: '0.50'
|
||||||
seed: null
|
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
- '16:9'
|
- '16:9'
|
||||||
supported_durations:
|
supported_durations:
|
||||||
@@ -12733,10 +12666,6 @@ components:
|
|||||||
description: Description of the model
|
description: Description of the model
|
||||||
example: GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
|
example: GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
|
||||||
type: string
|
type: string
|
||||||
generate_audio:
|
|
||||||
description: Whether the model supports generating audio alongside video
|
|
||||||
nullable: true
|
|
||||||
type: boolean
|
|
||||||
hugging_face_id:
|
hugging_face_id:
|
||||||
description: Hugging Face model identifier, if applicable
|
description: Hugging Face model identifier, if applicable
|
||||||
example: microsoft/DialoGPT-medium
|
example: microsoft/DialoGPT-medium
|
||||||
@@ -12756,10 +12685,6 @@ components:
|
|||||||
description: Pricing SKUs with provider prefix stripped, values as strings
|
description: Pricing SKUs with provider prefix stripped, values as strings
|
||||||
nullable: true
|
nullable: true
|
||||||
type: object
|
type: object
|
||||||
seed:
|
|
||||||
description: Whether the model supports deterministic generation via seed parameter
|
|
||||||
nullable: true
|
|
||||||
type: boolean
|
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
description: Supported output aspect ratios
|
description: Supported output aspect ratios
|
||||||
items:
|
items:
|
||||||
@@ -12837,8 +12762,6 @@ components:
|
|||||||
- supported_aspect_ratios
|
- supported_aspect_ratios
|
||||||
- supported_sizes
|
- supported_sizes
|
||||||
- supported_durations
|
- supported_durations
|
||||||
- generate_audio
|
|
||||||
- seed
|
|
||||||
- allowed_passthrough_parameters
|
- allowed_passthrough_parameters
|
||||||
type: object
|
type: object
|
||||||
VideoModelsListResponse:
|
VideoModelsListResponse:
|
||||||
@@ -12848,12 +12771,10 @@ components:
|
|||||||
canonical_slug: google/veo-3.1
|
canonical_slug: google/veo-3.1
|
||||||
created: 1700000000
|
created: 1700000000
|
||||||
description: Google video generation model
|
description: Google video generation model
|
||||||
generate_audio: true
|
|
||||||
id: google/veo-3.1
|
id: google/veo-3.1
|
||||||
name: Veo 3.1
|
name: Veo 3.1
|
||||||
pricing_skus:
|
pricing_skus:
|
||||||
generate: '0.50'
|
generate: '0.50'
|
||||||
seed: null
|
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
- '16:9'
|
- '16:9'
|
||||||
supported_durations:
|
supported_durations:
|
||||||
@@ -19164,12 +19085,10 @@ paths:
|
|||||||
canonical_slug: google/veo-3.1
|
canonical_slug: google/veo-3.1
|
||||||
created: 1700000000
|
created: 1700000000
|
||||||
description: Google video generation model
|
description: Google video generation model
|
||||||
generate_audio: true
|
|
||||||
id: google/veo-3.1
|
id: google/veo-3.1
|
||||||
name: Veo 3.1
|
name: Veo 3.1
|
||||||
pricing_skus:
|
pricing_skus:
|
||||||
generate: '0.50'
|
generate: '0.50'
|
||||||
seed: null
|
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
- '16:9'
|
- '16:9'
|
||||||
supported_durations:
|
supported_durations:
|
||||||
|
|||||||
Reference in New Issue
Block a user