mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-07 11:25:29 +08:00
chore: update OpenAPI spec from monorepo (#292)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
23ee599564
commit
68fc6f0ee9
@@ -27450,12 +27450,34 @@ paths:
|
|||||||
top_n: 3
|
top_n: 3
|
||||||
properties:
|
properties:
|
||||||
documents:
|
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:
|
example:
|
||||||
- Paris is the capital of France.
|
- Paris is the capital of France.
|
||||||
- Berlin is the capital of Germany.
|
- Berlin is the capital of Germany.
|
||||||
items:
|
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
|
type: array
|
||||||
model:
|
model:
|
||||||
description: The rerank model to use
|
description: The rerank model to use
|
||||||
@@ -27526,14 +27548,16 @@ paths:
|
|||||||
relevance_score: 0.98
|
relevance_score: 0.98
|
||||||
properties:
|
properties:
|
||||||
document:
|
document:
|
||||||
description: The document object containing the original text
|
description: The document object echoing the original input (text and/or image)
|
||||||
properties:
|
properties:
|
||||||
|
image:
|
||||||
|
description: The image (URL or data URI) from the original document
|
||||||
|
example: https://example.com/image.png
|
||||||
|
type: string
|
||||||
text:
|
text:
|
||||||
description: The document text
|
description: The document text
|
||||||
example: Paris is the capital of France.
|
example: Paris is the capital of France.
|
||||||
type: string
|
type: string
|
||||||
required:
|
|
||||||
- text
|
|
||||||
type: object
|
type: object
|
||||||
index:
|
index:
|
||||||
description: Index of the document in the original input list
|
description: Index of the document in the original input list
|
||||||
|
|||||||
Reference in New Issue
Block a user