From 68fc6f0ee96d82996ba99c156e659a65f93d0708 Mon Sep 17 00:00:00 2001 From: robert-j-y <212159665+robert-j-y@users.noreply.github.com> Date: Tue, 9 Jun 2026 12:37:51 -0700 Subject: [PATCH] chore: update OpenAPI spec from monorepo (#292) Co-authored-by: OpenRouter SDK Bot --- .speakeasy/in.openapi.yaml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 0601755..6888aee 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -27450,12 +27450,34 @@ paths: top_n: 3 properties: documents: - description: The list of documents to rerank + description: >- + The list of documents to rerank. Documents may be plain strings, or structured objects with `text` + and/or `image` for multimodal models. example: - Paris is the capital of France. - Berlin is the capital of Germany. items: - type: string + anyOf: + - type: string + - description: >- + A structured document with optional text and/or image content. At least one of `text` or + `image` must be provided. + properties: + image: + description: >- + An image associated with the document, as a remote URL (http/https) or a base64-encoded + data URI (data:image/...). + example: https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Phytogenic.png + type: string + text: + description: The document text + example: AI enables robots to perceive, plan, and act autonomously. + type: string + type: object + description: >- + A document to rerank. Either a plain string, or a structured object with optional `text` and/or + `image`. + minItems: 1 type: array model: description: The rerank model to use @@ -27526,14 +27548,16 @@ paths: relevance_score: 0.98 properties: document: - description: The document object containing the original text + description: The document object echoing the original input (text and/or image) properties: + image: + description: The image (URL or data URI) from the original document + example: https://example.com/image.png + type: string text: description: The document text example: Paris is the capital of France. type: string - required: - - text type: object index: description: Index of the document in the original input list