Skip to content

Commit 4a8fb9b

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1317)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent cd31c2a commit 4a8fb9b

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6140,6 +6140,10 @@ components:
61406140
index: 0
61416141
object: 'embedding'
61426142
properties:
6143+
document_index:
6144+
description: 'Index of the source document when `input` was a list of documents (contextual embeddings). Absent otherwise.'
6145+
example: 0
6146+
type: 'integer'
61436147
embedding:
61446148
anyOf:
61456149
- items:
@@ -43627,6 +43631,19 @@ paths:
4362743631
minLength: 1
4362843632
type: 'string'
4362943633
type: 'array'
43634+
- description: 'Documents to embed with document-level context: each item is an ordered list of chunk strings. One embedding is returned per chunk, in document order, with `document_index` set on each. Only models that support contextual embeddings accept this shape.'
43635+
example:
43636+
- - 'Paris is the capital of France.'
43637+
- 'It sits on the Seine.'
43638+
- - 'Berlin is the capital of Germany.'
43639+
items:
43640+
items:
43641+
minLength: 1
43642+
type: 'string'
43643+
minItems: 1
43644+
type: 'array'
43645+
minItems: 1
43646+
type: 'array'
4363043647
- items:
4363143648
type: 'number'
4363243649
type: 'array'
@@ -43680,7 +43697,7 @@ paths:
4368043697
description: 'Text, token, or multimodal input(s) to embed'
4368143698
example: 'The quick brown fox jumps over the lazy dog'
4368243699
input_type:
43683-
description: 'The type of input (e.g. search_query, search_document)'
43700+
description: 'The type of input (e.g. search_query, search_document). Document-chunk input (`string[][]`) is only valid with a document input type.'
4368443701
example: 'search_query'
4368543702
type: 'string'
4368643703
model:
@@ -43746,6 +43763,10 @@ paths:
4374643763
index: 0
4374743764
object: 'embedding'
4374843765
properties:
43766+
document_index:
43767+
description: 'Index of the source document when `input` was a list of documents (contextual embeddings). Absent otherwise.'
43768+
example: 0
43769+
type: 'integer'
4374943770
embedding:
4375043771
anyOf:
4375143772
- items:

0 commit comments

Comments
 (0)