mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
4.1 KiB
4.1 KiB
CreateEmbeddingsRequestBody
Embeddings request input
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
dimensions |
Optional[int] | ➖ | The number of dimensions for the output embeddings | 1536 |
encoding_format |
Optional[operations.EncodingFormat] | ➖ | The format of the output embeddings | float |
input |
operations.InputUnion | ✔️ | Text, token, or multimodal input(s) to embed | The quick brown fox jumps over the lazy dog |
input_type |
Optional[str] | ➖ | The type of input (e.g. search_query, search_document) | search_query |
model |
str | ✔️ | The model to use for embeddings | openai/text-embedding-3-small |
provider |
OptionalNullable[components.ProviderPreferences] | ➖ | N/A | { "allow_fallbacks": true } |
user |
Optional[str] | ➖ | A unique identifier for the end-user | user-1234 |