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(ui): make SCX.ai selectable in the Add Model provider dropdown
bhuvan2134686b8e2848fcd7e
diff --git a/litellm/proxy/public_endpoints/provider_create_fields.json b/litellm/proxy/public_endpoints/provider_create_fields.jsonindex fcc6aac1c14..36db02d814e 100644--- a/litellm/proxy/public_endpoints/provider_create_fields.json+++ b/litellm/proxy/public_endpoints/provider_create_fields.json@@ -2660,6 +2660,34 @@],"default_model_placeholder": "sap/gpt-4"},+ {+ "provider": "SCX_AI",+ "provider_display_name": "SCX.ai",+ "litellm_provider": "scx-ai",+ "credential_fields": [+ {+ "key": "api_base",+ "label": "API Base",+ "placeholder": "https://api.scx.ai/v1",+ "tooltip": null,+ "required": false,+ "field_type": "text",+ "options": null,+ "default_value": null+ },+ {+ "key": "api_key",+ "label": "API Key",+ "placeholder": null,+ "tooltip": null,+ "required": true,+ "field_type": "password",+ "options": null,+ "default_value": null+ }+ ],+ "default_model_placeholder": "scx-ai/gpt-oss-120b"+ },{"provider": "Snowflake","provider_display_name": "Snowflake",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 7994a133a83..92921067728 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@@ -168,3 +168,30 @@ class TestSCXAIModelMetadata:for model in self.SCX_MODELS:assert model in backup, f"{model} missing from backup json"assert backup[model] == model_cost[model], f"{model} differs between root and backup json"+++class TestSCXAIDashboardRegistration:+ @staticmethod+ def _provider_create_fields():+ import json+ from pathlib import Path++ import litellm++ path = Path(litellm.__file__).parent / "proxy" / "public_endpoints" / "provider_create_fields.json"+ with open(path) as f:+ return json.load(f)++ def test_scx_ai_is_selectable_in_the_add_model_form(self):+ entries = [e for e in self._provider_create_fields() if e["litellm_provider"] == "scx-ai"]+ assert len(entries) == 1, "scx-ai must appear exactly once in provider_create_fields.json"++ entry = entries[0]+ assert entry["provider"] == "SCX_AI"+ assert entry["provider_display_name"] == "SCX.ai"+ assert entry["default_model_placeholder"].startswith("scx-ai/")++ fields = {f["key"]: f for f in entry["credential_fields"]}+ assert fields["api_key"]["required"] is True+ assert fields["api_key"]["field_type"] == "password"+ assert fields["api_base"]["required"] is False