From 0ecf2ef25358e0f1199a784c4df6a0719a6344e5 Mon Sep 17 00:00:00 2001 From: robert-j-y <212159665+robert-j-y@users.noreply.github.com> Date: Fri, 15 May 2026 13:49:07 -0700 Subject: [PATCH] chore: update OpenAPI spec from monorepo (#251) Co-authored-by: OpenRouter SDK Bot --- .speakeasy/in.openapi.yaml | 69 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 0636758..06322b2 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -5305,6 +5305,57 @@ components: - type - image_url 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: description: The compression engine to use. Defaults to "middle-out". enum: @@ -10195,6 +10246,18 @@ components: required: - id type: object + MultimodalMedia: + example: + data: data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAA... + format: wav + properties: + data: + type: string + format: + type: string + required: + - data + type: object NotFoundResponse: description: Not Found - Resource does not exist example: @@ -17734,6 +17797,9 @@ paths: - type - image_url type: object + - $ref: '#/components/schemas/ContentPartInputAudio' + - $ref: '#/components/schemas/ContentPartInputVideo' + - $ref: '#/components/schemas/ContentPartInputFile' type: array required: - content @@ -17861,6 +17927,9 @@ paths: audio_tokens: description: Number of audio tokens in the input type: integer + file_tokens: + description: Number of file/document tokens in the input + type: integer image_tokens: description: Number of image tokens in the input example: 258