Skip to content

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]

fix(cohere): set embed v3 context length to 512 tokens

Devin AIca405879a2ba
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 92df776adf4..60f48ec9679 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -22170,8 +22170,8 @@
"embed-english-light-v3.0": {
"input_cost_per_token": 1e-07,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"mode": "embedding",
"output_cost_per_token": 0.0
},
@@ -22188,8 +22188,8 @@
"input_cost_per_image": 0.0001,
"input_cost_per_token": 1e-07,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"metadata": {
"notes": "'supports_image_input' is a deprecated field. Use 'supports_embedding_image_input' instead."
},
@@ -22210,8 +22210,8 @@
"embed-multilingual-v3.0": {
"input_cost_per_token": 1e-07,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"mode": "embedding",
"output_cost_per_token": 0.0,
"supports_embedding_image_input": true
@@ -22219,8 +22219,8 @@
"embed-multilingual-light-v3.0": {
"input_cost_per_token": 0.0001,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"mode": "embedding",
"output_cost_per_token": 0.0,
"supports_embedding_image_input": true
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 92df776adf4..60f48ec9679 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -22170,8 +22170,8 @@
"embed-english-light-v3.0": {
"input_cost_per_token": 1e-07,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"mode": "embedding",
"output_cost_per_token": 0.0
},
@@ -22188,8 +22188,8 @@
"input_cost_per_image": 0.0001,
"input_cost_per_token": 1e-07,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"metadata": {
"notes": "'supports_image_input' is a deprecated field. Use 'supports_embedding_image_input' instead."
},
@@ -22210,8 +22210,8 @@
"embed-multilingual-v3.0": {
"input_cost_per_token": 1e-07,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"mode": "embedding",
"output_cost_per_token": 0.0,
"supports_embedding_image_input": true
@@ -22219,8 +22219,8 @@
"embed-multilingual-light-v3.0": {
"input_cost_per_token": 0.0001,
"litellm_provider": "cohere",
- "max_input_tokens": 1024,
- "max_tokens": 1024,
+ "max_input_tokens": 512,
+ "max_tokens": 512,
"mode": "embedding",
"output_cost_per_token": 0.0,
"supports_embedding_image_input": true