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(baseten): annotate test locals with Final (#47205)
ryan-crabbe-berri52023601a872
diff --git a/tests/unit/llms/baseten/chat/test_baseten_completions.py b/tests/unit/llms/baseten/chat/test_baseten_completions.pyindex 9195df13242..7cac16cca1c 100644--- a/tests/unit/llms/baseten/chat/test_baseten_completions.py+++ b/tests/unit/llms/baseten/chat/test_baseten_completions.py@@ -1,4 +1,5 @@import os+from typing import Finalimport pytestfrom unittest.mock import patchfrom litellm.llms.baseten.chat import BasetenConfig@@ -9,7 +10,7 @@ class TestBasetenRouting:def test_routing_logic(self):"""Test routing between Model API and dedicated deployments"""- config = BasetenConfig()+ config: Final = BasetenConfig()# Dedicated deployment (8-character alphanumeric)assert (@@ -27,12 +28,12 @@ class TestBasetenModelAPI:@patch.dict(os.environ, {"BASETEN_API_KEY": "test-key"})def test_model_api_inference(self):"""Test Model API inference with basic parameters"""- config = BasetenConfig()+ config: Final = BasetenConfig()# Test parameter mapping- non_default_params = {"max_tokens": 100, "temperature": 0.7, "top_p": 0.9}+ non_default_params: Final = {"max_tokens": 100, "temperature": 0.7, "top_p": 0.9}- result = config.map_openai_params(+ result: Final = config.map_openai_params(non_default_params=non_default_params,optional_params={},model="openai/gpt-oss-120b",@@ -51,9 +52,9 @@ class TestBasetenModelAPI:class TestBasetenReasoningEffort:def test_reasoning_effort_passthrough_with_drop_params(self):- config = BasetenConfig()+ config: Final = BasetenConfig()- result = config.map_openai_params(+ result: Final = config.map_openai_params(non_default_params={"reasoning_effort": "high", "max_tokens": 100},optional_params={},model="deepseek-ai/DeepSeek-V4-Flash-0731",@@ -64,9 +65,9 @@ class TestBasetenReasoningEffort:assert result["max_tokens"] == 100def test_reasoning_effort_none_passthrough(self):- config = BasetenConfig()+ config: Final = BasetenConfig()- result = config.map_openai_params(+ result: Final = config.map_openai_params(non_default_params={"reasoning_effort": "none"},optional_params={},model="moonshotai/Kimi-K3",