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
test(cost-map): type the monkeypatch fixture in cerebras and inception registry tests
mateoe3130a87bc0f
diff --git a/tests/test_litellm/llms/cerebras/test_cerebras_chat_transformation.py b/tests/test_litellm/llms/cerebras/test_cerebras_chat_transformation.pyindex 6a438888a8a..a47180e9511 100644--- a/tests/test_litellm/llms/cerebras/test_cerebras_chat_transformation.py+++ b/tests/test_litellm/llms/cerebras/test_cerebras_chat_transformation.py@@ -1,3 +1,5 @@+import pytest+import litellmfrom litellm.llms.cerebras.chat import CerebrasConfig@@ -62,7 +64,7 @@ def test_map_openai_params_preserves_max_retries_zero_falsy() -> None:)-def test_qwen_3_8_27b_cost_and_tokens(monkeypatch) -> None:+def test_qwen_3_8_27b_cost_and_tokens(monkeypatch: pytest.MonkeyPatch) -> None:monkeypatch.setenv("LITELLM_LOCAL_MODEL_COST_MAP", "True")monkeypatch.setattr(litellm, "model_cost", litellm.get_model_cost_map(url=""))model = "cerebras/qwen-3.8-27b"diff --git a/tests/test_litellm/llms/inception/test_inception_chat_transformation.py b/tests/test_litellm/llms/inception/test_inception_chat_transformation.pyindex e3bc4d7992d..04813143fae 100644--- a/tests/test_litellm/llms/inception/test_inception_chat_transformation.py+++ b/tests/test_litellm/llms/inception/test_inception_chat_transformation.py@@ -7,6 +7,7 @@ import osfrom unittest import mockimport httpx+import pytestimport litellmfrom litellm.llms.inception.chat.transformation import InceptionChatConfig@@ -307,7 +308,7 @@ def test_inception_completion_targets_inception_endpoint():assert response.choices[0].message.content == "hi"-def test_inception_mercury_2_5_cost_and_tokens(monkeypatch):+def test_inception_mercury_2_5_cost_and_tokens(monkeypatch: pytest.MonkeyPatch) -> None:monkeypatch.setenv("LITELLM_LOCAL_MODEL_COST_MAP", "True")monkeypatch.setattr(litellm, "model_cost", litellm.get_model_cost_map(url=""))model = "inception/mercury-2.5"