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
Add Gemini embedding doc (#7436)
Igor Ribeiro Lima11932d0576a0
diff --git a/docs/my-website/docs/embedding/supported_embedding.md b/docs/my-website/docs/embedding/supported_embedding.mdindex 603e04dd92e..1f877ecc372 100644--- a/docs/my-website/docs/embedding/supported_embedding.md+++ b/docs/my-website/docs/embedding/supported_embedding.md@@ -394,6 +394,32 @@ print(response)|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|| mistral-embed | `embedding(model="mistral/mistral-embed", input)` |+## Gemini AI Embedding Models++### API keys++This can be set as env variables or passed as **params to litellm.embedding()**+```python+import os+os.environ["GEMINI_API_KEY"] = ""+```++### Usage - Embedding+```python+from litellm import embedding+response = embedding(+ model="gemini/text-embedding-004",+ input=["good morning from litellm"],+)+print(response)+```++All models listed [here](https://ai.google.dev/gemini-api/docs/models/gemini) are supported:++| Model Name | Function Call |+| :--- | :--- |+| text-embedding-004 | `embedding(model="gemini/text-embedding-004", input)` |+## Vertex AI Embedding Models@@ -411,7 +437,7 @@ response = embedding(print(response)```-## Supported Models+### Supported ModelsAll models listed [here](https://github.com/BerriAI/litellm/blob/57f37f743886a0249f630a6792d49dffc2c5d9b7/model_prices_and_context_window.json#L835) are supported| Model Name | Function Call |@@ -509,4 +535,4 @@ curl -X POST 'http://0.0.0.0:4000/v1/embeddings' \}'```</TabItem>-</Tabs>\ No newline at end of file+</Tabs>