mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-09 12:10:22 +08:00
chore: update OpenAPI spec from monorepo (#251)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
a7fd661299
commit
0ecf2ef253
@@ -5305,6 +5305,57 @@ components:
|
|||||||
- type
|
- type
|
||||||
- image_url
|
- image_url
|
||||||
type: object
|
type: object
|
||||||
|
ContentPartInputAudio:
|
||||||
|
example:
|
||||||
|
input_audio:
|
||||||
|
data: data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAA...
|
||||||
|
format: wav
|
||||||
|
type: input_audio
|
||||||
|
properties:
|
||||||
|
input_audio:
|
||||||
|
$ref: '#/components/schemas/MultimodalMedia'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- input_audio
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- input_audio
|
||||||
|
type: object
|
||||||
|
ContentPartInputFile:
|
||||||
|
example:
|
||||||
|
input_file:
|
||||||
|
data: data:application/pdf;base64,JVBERi0xLjQKJeLjz9MKMyAw...
|
||||||
|
format: pdf
|
||||||
|
type: input_file
|
||||||
|
properties:
|
||||||
|
input_file:
|
||||||
|
$ref: '#/components/schemas/MultimodalMedia'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- input_file
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- input_file
|
||||||
|
type: object
|
||||||
|
ContentPartInputVideo:
|
||||||
|
example:
|
||||||
|
input_video:
|
||||||
|
data: data:video/mp4;base64,AAAAGGZ0eXBtcDQyAAAAAGlzb21tcDQy...
|
||||||
|
format: mp4
|
||||||
|
type: input_video
|
||||||
|
properties:
|
||||||
|
input_video:
|
||||||
|
$ref: '#/components/schemas/MultimodalMedia'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- input_video
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- input_video
|
||||||
|
type: object
|
||||||
ContextCompressionEngine:
|
ContextCompressionEngine:
|
||||||
description: The compression engine to use. Defaults to "middle-out".
|
description: The compression engine to use. Defaults to "middle-out".
|
||||||
enum:
|
enum:
|
||||||
@@ -10195,6 +10246,18 @@ components:
|
|||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
type: object
|
type: object
|
||||||
|
MultimodalMedia:
|
||||||
|
example:
|
||||||
|
data: data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAA...
|
||||||
|
format: wav
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
type: string
|
||||||
|
format:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
type: object
|
||||||
NotFoundResponse:
|
NotFoundResponse:
|
||||||
description: Not Found - Resource does not exist
|
description: Not Found - Resource does not exist
|
||||||
example:
|
example:
|
||||||
@@ -17734,6 +17797,9 @@ paths:
|
|||||||
- type
|
- type
|
||||||
- image_url
|
- image_url
|
||||||
type: object
|
type: object
|
||||||
|
- $ref: '#/components/schemas/ContentPartInputAudio'
|
||||||
|
- $ref: '#/components/schemas/ContentPartInputVideo'
|
||||||
|
- $ref: '#/components/schemas/ContentPartInputFile'
|
||||||
type: array
|
type: array
|
||||||
required:
|
required:
|
||||||
- content
|
- content
|
||||||
@@ -17861,6 +17927,9 @@ paths:
|
|||||||
audio_tokens:
|
audio_tokens:
|
||||||
description: Number of audio tokens in the input
|
description: Number of audio tokens in the input
|
||||||
type: integer
|
type: integer
|
||||||
|
file_tokens:
|
||||||
|
description: Number of file/document tokens in the input
|
||||||
|
type: integer
|
||||||
image_tokens:
|
image_tokens:
|
||||||
description: Number of image tokens in the input
|
description: Number of image tokens in the input
|
||||||
example: 258
|
example: 258
|
||||||
|
|||||||
Reference in New Issue
Block a user