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(model_prices): restore supports_vision on Mistral Small 4.0 entries

mateo-berri50a346da1cac
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 94c40fc3a88..9b1d354e02f 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -30223,7 +30223,8 @@
"supports_function_calling": true,
"supports_response_schema": true,
"supports_tool_choice": true,
- "supports_reasoning": true
+ "supports_reasoning": true,
+ "supports_vision": true
},
"mistral/mistral-small-3-2-2506": {
"deprecation_date": "2026-07-31",
@@ -49192,7 +49193,8 @@
"supports_function_calling": true,
"supports_reasoning": true,
"supports_response_schema": true,
- "supports_tool_choice": true
+ "supports_tool_choice": true,
+ "supports_vision": true
},
"mistral/labs-leanstral-1-5": {
"input_cost_per_token": 0.0,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 94c40fc3a88..9b1d354e02f 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -30223,7 +30223,8 @@
"supports_function_calling": true,
"supports_response_schema": true,
"supports_tool_choice": true,
- "supports_reasoning": true
+ "supports_reasoning": true,
+ "supports_vision": true
},
"mistral/mistral-small-3-2-2506": {
"deprecation_date": "2026-07-31",
@@ -49192,7 +49193,8 @@
"supports_function_calling": true,
"supports_reasoning": true,
"supports_response_schema": true,
- "supports_tool_choice": true
+ "supports_tool_choice": true,
+ "supports_vision": true
},
"mistral/labs-leanstral-1-5": {
"input_cost_per_token": 0.0,
diff --git a/tests/test_litellm/test_mistral_small_4_0_model_metadata.py b/tests/test_litellm/test_mistral_small_4_0_model_metadata.py
new file mode 100644
index 00000000000..0442321ba0b
--- /dev/null
+++ b/tests/test_litellm/test_mistral_small_4_0_model_metadata.py
@@ -0,0 +1,49 @@
+import json
+from pathlib import Path
+
+import pytest
+
+REPO_ROOT = Path(__file__).parents[2]
+MAIN_PATH = REPO_ROOT / "model_prices_and_context_window.json"
+BACKUP_PATH = REPO_ROOT / "litellm" / "model_prices_and_context_window_backup.json"
+
+SMALL_4_0_MODELS = (
+ "mistral/mistral-small-latest",
+ "mistral/mistral-small-2603",
+)
+
+
+def _load(path):
+ with open(path) as f:
+ return json.load(f)
+
+
[email protected]("model", SMALL_4_0_MODELS)
+def test_small_4_0_specs(model):
+ info = _load(MAIN_PATH).get(model)
+ assert info is not None, f"{model} missing from model_prices_and_context_window.json"
+
+ assert info["litellm_provider"] == "mistral"
+ assert info["mode"] == "chat"
+
+ assert info["input_cost_per_token"] == 1.5e-07
+ assert info["output_cost_per_token"] == 6e-07
+
+ assert info["max_input_tokens"] == 262144
+ assert info["max_output_tokens"] == 262144
+ assert info["max_tokens"] == 262144
+
+ assert info["supports_reasoning"] is True
+ assert info["supports_vision"] is True
+ assert info["supports_function_calling"] is True
+ assert info["supports_response_schema"] is True
+ assert info["supports_tool_choice"] is True
+ assert info["supports_assistant_prefill"] is True
+
+
[email protected]("model", SMALL_4_0_MODELS)
+def test_backup_matches_main(model):
+ main_cost = _load(MAIN_PATH)
+ backup_cost = _load(BACKUP_PATH)
+
+ assert backup_cost.get(model) == main_cost.get(model), f"{model} differs between main and backup model cost maps"