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
fix(scx-ai): correct the temperature ceiling to match the endpoint
bhuvan2134686a028c8857e2d
diff --git a/litellm/llms/openai_like/providers.json b/litellm/llms/openai_like/providers.jsonindex d796d140878..b43a44c2d3e 100644--- a/litellm/llms/openai_like/providers.json+++ b/litellm/llms/openai_like/providers.json@@ -192,7 +192,7 @@"max_completion_tokens": "max_tokens"},"constraints": {- "temperature_max": 1.0+ "temperature_max": 1.99},"supported_endpoints": ["/v1/chat/completions"]}diff --git a/tests/test_litellm/llms/openai_like/test_scx_ai_provider.py b/tests/test_litellm/llms/openai_like/test_scx_ai_provider.pyindex 6b293cae303..1ce2da65fef 100644--- a/tests/test_litellm/llms/openai_like/test_scx_ai_provider.py+++ b/tests/test_litellm/llms/openai_like/test_scx_ai_provider.py@@ -23,7 +23,7 @@ class TestSCXAIProviderConfig:assert scx.base_url == "https://api.scx.ai/v1"assert scx.api_key_env == "SCX_API_KEY"assert scx.param_mappings.get("max_completion_tokens") == "max_tokens"- assert scx.constraints.get("temperature_max") == 1.0+ assert scx.constraints.get("temperature_max") == 1.99def test_scx_ai_in_openai_compatible_providers(self):from litellm.constants import openai_compatible_providers@@ -78,13 +78,21 @@ class TestSCXAIProviderConfig:assert provider is not Noneconfig = create_config_class(provider)()+ optional_params = config.map_openai_params(+ non_default_params={"temperature": 2.5},+ optional_params={},+ model="GLM-5.2",+ drop_params=False,+ )+ assert optional_params["temperature"] == 1.99+optional_params = config.map_openai_params(non_default_params={"temperature": 1.7},optional_params={},model="GLM-5.2",drop_params=False,)- assert optional_params["temperature"] == 1.0+ assert optional_params["temperature"] == 1.7optional_params = config.map_openai_params(non_default_params={"temperature": 0.4},