The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs(embeddings): add supported input formats section (#20073)
Cesar Garcia3fa7ab10127e
diff --git a/docs/my-website/docs/proxy/embedding.md b/docs/my-website/docs/proxy/embedding.mdindex 2adaaa24735..0e7c2d55c44 100644--- a/docs/my-website/docs/proxy/embedding.md+++ b/docs/my-website/docs/proxy/embedding.md@@ -6,6 +6,16 @@ import TabItem from '@theme/TabItem';See supported Embedding Providers & Models [here](https://docs.litellm.ai/docs/embedding/supported_embedding)+## Supported Input Formats++The `/v1/embeddings` endpoint follows the [OpenAI embeddings API specification](https://platform.openai.com/docs/api-reference/embeddings/create). The following input formats are supported:++| Format | Example |+|--------|---------|+| String | `"input": "Hello"` |+| Array of strings | `"input": ["Hello", "World"]` |+| Array of tokens (integers) | `"input": [1234, 5678, 9012]` |+| Array of token arrays | `"input": [[1234, 5678], [9012, 3456]]` |## Quick startHere's how to route between GPT-J embedding (sagemaker endpoint), Amazon Titan embedding (Bedrock) and Azure OpenAI embedding on the proxy server: