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
feat(decisions): add Laya and Bespoke providers to the Add Model form (#45260)
devin-ai-integration[bot]a93fee9f6c86
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex 504993cb469..881be90d4b8 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -1710,6 +1710,12 @@ if TYPE_CHECKING:from .llms.hosted_vllm.decisions.transformation import (HostedVLLMDecisionsConfig as HostedVLLMDecisionsConfig,)+ from .llms.laya.decisions.transformation import (+ LayaDecisionsConfig as LayaDecisionsConfig,+ )+ from .llms.bespoke.decisions.transformation import (+ BespokeDecisionsConfig as BespokeDecisionsConfig,+ )from .llms.openai.decisions.transformation import (OpenAIDecisionsConfig as OpenAIDecisionsConfig,)diff --git a/litellm/_lazy_imports_registry.py b/litellm/_lazy_imports_registry.pyindex cbcb64c9197..13014babd25 100644--- a/litellm/_lazy_imports_registry.py+++ b/litellm/_lazy_imports_registry.py@@ -166,6 +166,8 @@ LLM_CONFIG_NAMES: Final = ("StrandsDeciderDecisionsConfig","DatabricksDecisionsConfig","HostedVLLMDecisionsConfig",+ "LayaDecisionsConfig",+ "BespokeDecisionsConfig","OpenAIDecisionsConfig","AzureAIDecisionsConfig","NvidiaNimRerankConfig",@@ -736,6 +738,8 @@ _LLM_CONFIGS_IMPORT_MAP: Final = {".llms.hosted_vllm.decisions.transformation","HostedVLLMDecisionsConfig",),+ "LayaDecisionsConfig": (".llms.laya.decisions.transformation", "LayaDecisionsConfig"),+ "BespokeDecisionsConfig": (".llms.bespoke.decisions.transformation", "BespokeDecisionsConfig"),"OpenAIDecisionsConfig": (".llms.openai.decisions.transformation", "OpenAIDecisionsConfig"),"AzureAIDecisionsConfig": (".llms.azure_ai.decisions.transformation", "AzureAIDecisionsConfig"),"NvidiaNimRerankConfig": (diff --git a/litellm/decisions/call.py b/litellm/decisions/call.pyindex ef78cb68323..0fc703c2c68 100644--- a/litellm/decisions/call.py+++ b/litellm/decisions/call.py@@ -349,14 +349,18 @@ def prepare_call(llm_provider=provider,) from error- resolved_api_base: Final = provider_config.resolve_api_base(dynamic_api_base or api_base)+ try:+ resolved_api_base, resolved_api_key = provider_config.resolve_connection(+ dynamic_api_base or api_base, dynamic_api_key or api_key+ )+ except ValueError as error:+ raise litellm.BadRequestError(message=str(error), model=model, llm_provider=provider) from errorif resolved_api_base is None:raise litellm.BadRequestError(message=provider_config.missing_api_base_message(provider),model=model,llm_provider=provider,)- resolved_api_key: Final = provider_config.resolve_api_key(dynamic_api_key or api_key)if resolved_api_key is None and provider_config.api_key_required:raise litellm.AuthenticationError(message=f"Missing API key for Decisions provider '{provider}'",diff --git a/litellm/llms/base_llm/decisions/transformation.py b/litellm/llms/base_llm/decisions/transformation.pyindex f7eec2b65ce..564bcc18275 100644--- a/litellm/llms/base_llm/decisions/transformation.py+++ b/litellm/llms/base_llm/decisions/transformation.py@@ -470,6 +470,9 @@ class BaseDecisionsConfig(ABC):def resolve_api_key(self, api_key: str | None) -> str | None:return api_key or self._first_secret(self.api_key_env)+ def resolve_connection(self, api_base: str | None, api_key: str | None) -> tuple[str | None, str | None]:+ return self.resolve_api_base(api_base), self.resolve_api_key(api_key)+@staticmethoddef _first_secret(names: tuple[str, ...]) -> str | None:return next((value for value in (get_secret_str(name) for name in names) if value), None)diff --git a/litellm/llms/bespoke/decisions/transformation.py b/litellm/llms/bespoke/decisions/transformation.pynew file mode 100644index 00000000000..e294a2cba2b--- /dev/null+++ b/litellm/llms/bespoke/decisions/transformation.py@@ -0,0 +1,15 @@+from typing import Final++from litellm.llms.base_llm.decisions.transformation import BaseDecisionsConfig+from litellm.llms.oss_decision import oss_connection, validate_oss_model+++class BespokeDecisionsConfig(BaseDecisionsConfig):+ api_key_required = False++ def canonical_model(self, model: str) -> str:+ return validate_oss_model("bespoke", model)++ def resolve_connection(self, api_base: str | None, api_key: str | None) -> tuple[str | None, str | None]:+ connection: Final = oss_connection("bespoke", api_base, api_key)+ return connection.api_base, connection.api_keydiff --git a/litellm/llms/laya/decisions/transformation.py b/litellm/llms/laya/decisions/transformation.pynew file mode 100644index 00000000000..00a521cc945--- /dev/null+++ b/litellm/llms/laya/decisions/transformation.py@@ -0,0 +1,15 @@+from typing import Final++from litellm.llms.base_llm.decisions.transformation import BaseDecisionsConfig+from litellm.llms.oss_decision import oss_connection, validate_oss_model+++class LayaDecisionsConfig(BaseDecisionsConfig):+ api_key_required = False++ def canonical_model(self, model: str) -> str:+ return validate_oss_model("laya", model)++ def resolve_connection(self, api_base: str | None, api_key: str | None) -> tuple[str | None, str | None]:+ connection: Final = oss_connection("laya", api_base, api_key)+ return connection.api_base, connection.api_keydiff --git a/litellm/llms/oss_decision.py b/litellm/llms/oss_decision.pyindex 1483adad93f..6166178bd34 100644--- a/litellm/llms/oss_decision.py+++ b/litellm/llms/oss_decision.py@@ -2,6 +2,7 @@ from collections.abc import Mappingfrom dataclasses import dataclass, fieldfrom types import MappingProxyTypefrom typing import Final, Literal, TypeAlias+from urllib.parse import urlsplitfrom pydantic import AnyHttpUrl, TypeAdapter, ValidationError@@ -46,11 +47,29 @@ def validate_oss_api_base(provider: OssDecisionProvider, value: str) -> str:return str(url).rstrip("/")+def _server_root(provider: OssDecisionProvider, base: str) -> str:+ parts: Final = urlsplit(validate_oss_api_base(provider, base))+ return parts._replace(path=parts.path.removesuffix("/v1")).geturl()+++def _is_env_server(provider: OssDecisionProvider, server: str, env_base: str | None) -> bool:+ if not env_base:+ return False+ try:+ return _server_root(provider, env_base) == server+ except ValueError:+ return False++def oss_connection(provider: OssDecisionProvider, api_base: str | None = None, api_key: str | None = None) -> OssDecisionConnection:- base: Final = api_base if api_base is not None else get_secret_str(f"{provider.upper()}_API_BASE")+ env_base: Final = get_secret_str(f"{provider.upper()}_API_BASE")+ base: Final = api_base if api_base is not None else env_baseif not base:raise ValueError(f"{provider} requires api_base or {provider.upper()}_API_BASE pointing to its server")- key: Final = api_key if api_base is not None else api_key or get_secret_str(f"{provider.upper()}_API_KEY")- return OssDecisionConnection(api_base=validate_oss_api_base(provider, base), api_key=key)+ server: Final = _server_root(provider, base)+ env_key: Final = (+ get_secret_str(f"{provider.upper()}_API_KEY") if _is_env_server(provider, server, env_base) else None+ )+ return OssDecisionConnection(api_base=server, api_key=api_key or env_key or None)diff --git a/litellm/proxy/public_endpoints/provider_create_fields.json b/litellm/proxy/public_endpoints/provider_create_fields.jsonindex cb7d099cafb..86510a5678c 100644--- a/litellm/proxy/public_endpoints/provider_create_fields.json+++ b/litellm/proxy/public_endpoints/provider_create_fields.json@@ -766,6 +766,34 @@],"default_model_placeholder": "gpt-3.5-turbo"},+ {+ "provider": "Bespoke",+ "provider_display_name": "Bespoke Nimble",+ "litellm_provider": "bespoke",+ "credential_fields": [+ {+ "key": "api_base",+ "label": "API Base",+ "placeholder": null,+ "tooltip": "On Ollama, pick bespoke/nimble as the model",+ "required": true,+ "field_type": "text",+ "options": null,+ "default_value": null+ },+ {+ "key": "api_key",+ "label": "API Key",+ "placeholder": null,+ "tooltip": null,+ "required": false,+ "field_type": "password",+ "options": null,+ "default_value": null+ }+ ],+ "default_model_placeholder": "bespoke/nimble"+ },{"provider": "BYTEZ","provider_display_name": "Bytez",@@ -1929,6 +1957,34 @@],"default_model_placeholder": "jina_ai/"},+ {+ "provider": "Laya",+ "provider_display_name": "Laya",+ "litellm_provider": "laya",+ "credential_fields": [+ {+ "key": "api_base",+ "label": "API Base",+ "placeholder": null,+ "tooltip": null,+ "required": true,+ "field_type": "text",+ "options": null,+ "default_value": null+ },+ {+ "key": "api_key",+ "label": "API Key",+ "placeholder": null,+ "tooltip": null,+ "required": false,+ "field_type": "password",+ "options": null,+ "default_value": null+ }+ ],+ "default_model_placeholder": "laya/english"+ },{"provider": "LAMBDA_AI","provider_display_name": "Lambda Ai",diff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex 93037d17062..67f4c653b24 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -4217,6 +4217,8 @@ class LlmProviders(str, Enum):PERPLEXITY = "perplexity"TYPESAFE = "typesafe"STRANDS_DECIDER = "strands_decider"+ LAYA = "laya"+ BESPOKE = "bespoke"MISTRAL = "mistral"MILVUS = "milvus"GROQ = "groq"diff --git a/litellm/utils.py b/litellm/utils.pyindex 4733051f4f6..238122b77f4 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -9043,6 +9043,10 @@ class ProviderConfigManager:return litellm.DatabricksDecisionsConfig()if provider == LlmProviders.HOSTED_VLLM:return litellm.HostedVLLMDecisionsConfig()+ if provider == LlmProviders.LAYA:+ return litellm.LayaDecisionsConfig()+ if provider == LlmProviders.BESPOKE:+ return litellm.BespokeDecisionsConfig()if provider == LlmProviders.OPENAI:return litellm.OpenAIDecisionsConfig()if provider == LlmProviders.AZURE_AI:diff --git a/tests/integration/providers/test_decisions_wire.py b/tests/integration/providers/test_decisions_wire.pyindex 6d4e9ac8a30..882bba1df51 100644--- a/tests/integration/providers/test_decisions_wire.py+++ b/tests/integration/providers/test_decisions_wire.py@@ -96,6 +96,10 @@ _PROVIDERS: Final = (_Provider("strands_decider", "strands_decider/systemone-decider", "/v1/systemone", "systemone-decider", None, False, None),+ _Provider("laya", "laya/english", "/v1/systemone", "english", None, False, "laya/english"),+ _Provider(+ "bespoke", "bespoke/nimble-latest", "/v1/systemone", "nimble-latest", None, False, "bespoke/nimble-latest"+ ),_Provider("hosted_vllm", "hosted_vllm/Qwen/Qwen3-0.6B", "/v1/systemone", "Qwen/Qwen3-0.6B", None, False, None),diff --git a/tests/unit/decisions/test_main.py b/tests/unit/decisions/test_main.pyindex 6750328abac..955f11f4368 100644--- a/tests/unit/decisions/test_main.py+++ b/tests/unit/decisions/test_main.py@@ -539,6 +539,74 @@ async def test_empty_custom_provider_falls_back_to_the_model_prefix(respx_mock:assert response._hidden_params["custom_llm_provider"] == "perplexity"[email protected](("provider", "model"), (("laya", "english"), ("bespoke", "nimble-latest")))+async def test_oss_classifier_env_key_goes_only_to_its_env_api_base(+ monkeypatch: pytest.MonkeyPatch,+ respx_mock: respx.MockRouter,+ provider: str,+ model: str,+) -> None:+ monkeypatch.setenv(f"{provider.upper()}_API_BASE", "https://operator-configured.example")+ monkeypatch.setenv(f"{provider.upper()}_API_KEY", "operator-env-key")+ env_upstream: Final = respx_mock.post("https://operator-configured.example/v1/systemone").respond(+ json=_STRANDS_RESPONSE+ )+ other_upstream: Final = respx_mock.post("https://deployment-chosen.example/v1/systemone").respond(+ json=_STRANDS_RESPONSE+ )+ questions: Final = {"is_defect": {"type": "noul", "instructions": "Is this a defect?"}}++ await litellm.asystemone(model=f"{provider}/{model}", state="review", questions=questions)+ await litellm.asystemone(+ model=f"{provider}/{model}",+ state="review",+ questions=questions,+ api_base="https://deployment-chosen.example",+ api_key="",+ )+ await litellm.asystemone(+ model=f"{provider}/{model}",+ state="review",+ questions=questions,+ api_base="https://operator-configured.example/",+ )++ assert [call.request.headers["authorization"] for call in env_upstream.calls] == [+ "Bearer operator-env-key",+ "Bearer operator-env-key",+ ]+ assert "authorization" not in other_upstream.calls[0].request.headers+++ ("model", "api_base", "error"),+ (+ ("laya/any-checkpoint", "https://laya.example", "laya model must be one of"),+ ("bespoke/any-checkpoint", "https://bespoke.example", "bespoke model must be one of"),+ ("laya/english", "https://laya.example?token=x", "must not contain credentials, a query"),+ ("bespoke/nimble", "http://user:[email protected]", "must not contain credentials, a query"),+ ("laya/english", "ftp://laya.example", "must be an HTTP or HTTPS server URL"),+ ),+)+async def test_oss_classifier_rejects_unknown_models_and_ambiguous_bases_before_http(+ respx_mock: respx.MockRouter,+ model: str,+ api_base: str,+ error: str,+) -> None:+ with pytest.raises(litellm.BadRequestError, match=re.escape(error)):+ await litellm.asystemone(+ model=model,+ state="review",+ questions={"is_defect": {"type": "noul", "instructions": "Is this a defect?"}},+ api_base=api_base,+ )++ assert len(respx_mock.calls) == 0++@pytest.mark.asyncioasync def test_upstream_reply_without_answers_is_a_server_error(respx_mock: respx.MockRouter) -> None:respx_mock.post("https://api.perplexity.ai/v1/decisions").respond(diff --git a/tests/unit/llms/test_oss_decision.py b/tests/unit/llms/test_oss_decision.pyindex 05c5d2bbff5..a20e86317b6 100644--- a/tests/unit/llms/test_oss_decision.py+++ b/tests/unit/llms/test_oss_decision.py@@ -13,6 +13,15 @@ pytestmark: Final = pytest.mark.parametrize("provider", ["laya", "bespoke"])(None, None, "http://decision.test/root", "oss-env-key"),("http://custom.test/", None, "http://custom.test", None),("http://custom.test/", "explicit-key", "http://custom.test", "explicit-key"),+ ("http://custom.test/", "", "http://custom.test", None),+ ("http://decision.test/root", None, "http://decision.test/root", "oss-env-key"),+ ("http://decision.test/root/", "", "http://decision.test/root", "oss-env-key"),+ ("http://decision.test/root", "explicit-key", "http://decision.test/root", "explicit-key"),+ ("http://decision.test/root/v1/", None, "http://decision.test/root", "oss-env-key"),+ ("http://decision.test/root/v2", None, "http://decision.test/root/v2", None),+ ("http://v1", None, "http://v1", None),+ ("http://v1/v1/", None, "http://v1", None),+ ("http://[::1]:8000/v1", None, "http://[::1]:8000", None),],)def test_oss_credentials_stay_with_their_configured_destination(@@ -32,6 +41,21 @@ def test_oss_credentials_stay_with_their_configured_destination(assert "key" not in repr(connection)+ ("env_base", "base"),+ [+ ("http://decision.test/root/v1/", "http://decision.test/root"),+ ("http://decision.test/root", "http://decision.test/root/v1"),+ ],+)+def test_oss_env_key_follows_its_server_with_or_without_the_v1_suffix(+ monkeypatch: pytest.MonkeyPatch, provider: OssDecisionProvider, env_base: str, base: str+) -> None:+ monkeypatch.setenv(f"{provider.upper()}_API_BASE", env_base)+ monkeypatch.setenv(f"{provider.upper()}_API_KEY", "oss-env-key")+ assert oss_connection(provider, base).api_key == "oss-env-key"++@pytest.mark.parametrize("base",["", "ftp://laya.test", "http://user:[email protected]", "https://laya.test?key=x", "http://laya.test/#x"],@@ -51,7 +75,9 @@ def test_oss_missing_server_does_not_fall_back_to_typesafe(oss_connection(provider)-def test_oss_request_accepts_the_name_ollama_serves_nimble_under_only_for_bespoke(provider: OssDecisionProvider) -> None:+def test_oss_request_accepts_the_name_ollama_serves_nimble_under_only_for_bespoke(+ provider: OssDecisionProvider,+) -> None:body: Final = {"model": "nimble"}if provider == "bespoke":assert validate_oss_request(provider, body) == "nimble"diff --git a/tests/unit/proxy/decisions_endpoints/test_endpoints.py b/tests/unit/proxy/decisions_endpoints/test_endpoints.pyindex 66ba28d85c1..8414b6c0e02 100644--- a/tests/unit/proxy/decisions_endpoints/test_endpoints.py+++ b/tests/unit/proxy/decisions_endpoints/test_endpoints.py@@ -260,6 +260,58 @@ def test_proxy_decisions_dispatches_strands_decider(assert "authorization" not in upstream.calls[0].request.headers+ ("model", "env_base", "env_key"),+ (+ ("laya/english", "LAYA_API_BASE", "LAYA_API_KEY"),+ ("bespoke/nimble-latest", "BESPOKE_API_BASE", "BESPOKE_API_KEY"),+ ),+ ids=("laya", "bespoke"),+)+def test_proxy_decisions_dispatches_oss_classifier_deployment(+ client: TestClient,+ monkeypatch: pytest.MonkeyPatch,+ respx_mock: respx.MockRouter,+ model: str,+ env_base: str,+ env_key: str,+) -> None:+ monkeypatch.delenv(env_base, raising=False)+ monkeypatch.delenv(env_key, raising=False)+ router: Final = litellm.Router(+ model_list=[+ {+ "model_name": "oss-classifier",+ "litellm_params": {+ "model": model,+ "api_base": "https://oss-decider.example",+ },+ }+ ]+ )+ monkeypatch.setattr(litellm.proxy.proxy_server, "llm_router", router)+ upstream: Final = respx_mock.post("https://oss-decider.example/v1/systemone").respond(json=_STRANDS_RESPONSE)++ response: Final = client.post(+ "/v1/systemone",+ json={+ "model": "oss-classifier",+ "state": {"source": "proxy-test"},+ "questions": {"is_defect": {"type": "noul", "instructions": "Is this a defect?"}},+ },+ )++ assert response.status_code == 200, response.text+ assert response.json()["answers"] == _STRANDS_RESPONSE["answers"]+ assert upstream.called+ assert json.loads(upstream.calls[0].request.content) == {+ "model": model.partition("/")[2],+ "state": {"source": "proxy-test"},+ "questions": {"is_defect": {"type": "noul", "instructions": "Is this a defect?"}},+ }+ assert "authorization" not in upstream.calls[0].request.headers++def test_proxy_systemone_dispatches_databricks_serving_endpoint(client: TestClient,monkeypatch: pytest.MonkeyPatch,diff --git a/tests/unit/proxy/public_endpoints/test_public_endpoints.py b/tests/unit/proxy/public_endpoints/test_public_endpoints.pyindex d16661b5221..9c26804a1db 100644--- a/tests/unit/proxy/public_endpoints/test_public_endpoints.py+++ b/tests/unit/proxy/public_endpoints/test_public_endpoints.py@@ -469,6 +469,31 @@ def test_strands_decider_provider_fields():assert fields_by_key["api_key"].field_type == "password"+ ("provider", "display_name", "litellm_provider", "model_placeholder"),+ (+ ("Laya", "Laya", LlmProviders.LAYA.value, "laya/english"),+ ("Bespoke", "Bespoke Nimble", LlmProviders.BESPOKE.value, "bespoke/nimble"),+ ),+)+def test_oss_decisions_provider_fields(+ provider: str, display_name: str, litellm_provider: str, model_placeholder: str+) -> None:+ entry: Final = _decisions_provider_entry(provider)++ assert entry.provider_display_name == display_name+ assert entry.litellm_provider == litellm_provider+ assert entry.default_model_placeholder == model_placeholder++ fields_by_key: Final = {f.key: f for f in entry.credential_fields}++ assert fields_by_key["api_base"].required is True+ assert fields_by_key["api_base"].field_type == "text"++ assert fields_by_key["api_key"].required is False+ assert fields_by_key["api_key"].field_type == "password"++ADD_MODEL_UNLISTED_PROVIDERS: Final = frozenset({"a2a",diff --git a/tests/unit/router_strategy/complexity_router/test_jev_classifier.py b/tests/unit/router_strategy/complexity_router/test_jev_classifier.pyindex f7fbac21304..10a8f7929d9 100644--- a/tests/unit/router_strategy/complexity_router/test_jev_classifier.py+++ b/tests/unit/router_strategy/complexity_router/test_jev_classifier.py@@ -491,13 +491,29 @@ def test_oss_requires_its_own_checkpoint(provider: str, model: str | None) -> No@pytest.mark.asyncio@pytest.mark.parametrize("provider,model", [("laya", "english"), ("bespoke", "nimble-latest")])[email protected]("custom_base", [False, True])+ "configured_base,server,expected_authorization",+ [+ (None, "{env}", "Bearer oss-env-key"),+ ("{env}/", "{env}", "Bearer oss-env-key"),+ ("{env}/v1", "{env}", "Bearer oss-env-key"),+ ("https://another-classifier.test", "https://another-classifier.test", None),+ ],+)@pytest.mark.parametrize("legacy", [False, True])async def test_oss_routes_with_its_own_credentials_and_accounts_the_checkpoint(- monkeypatch: pytest.MonkeyPatch, custom_base: bool, legacy: bool, provider: str, model: str+ monkeypatch: pytest.MonkeyPatch,+ configured_base: str | None,+ server: str,+ expected_authorization: str | None,+ legacy: bool,+ provider: str,+ model: str,) -> None:+ env_base: Final = f"https://{provider}.test"+ upstream_base: Final = server.format(env=env_base)monkeypatch.setenv("TYPESAFE_API_KEY", "never-send-typesafe-key")- monkeypatch.setenv(f"{provider.upper()}_API_BASE", f"https://{provider}.test")+ monkeypatch.setenv(f"{provider.upper()}_API_BASE", env_base)monkeypatch.setenv(f"{provider.upper()}_API_KEY", "oss-env-key")monkeypatch.setattr(litellm, "disable_aiohttp_transport", True)monkeypatch.setitem(litellm.model_cost, f"{provider}/{model}", {"input_cost_per_token": 0.01})@@ -511,14 +527,14 @@ async def test_oss_routes_with_its_own_credentials_and_accounts_the_checkpoint("jev_classifier_config" if legacy else "opensource_classifier_config": {"provider": provider,"model": model,- **({"api_base": f"https://{provider}.test"} if custom_base else {}),+ **({"api_base": configured_base.format(env=env_base)} if configured_base is not None else {}),},"tiers": {"SIMPLE": "cheap"},},derive_savings_baseline=False,)with respx.mock(assert_all_called=True) as upstream:- route: Final = upstream.post(f"https://{provider}.test/v1/systemone").respond(+ route: Final = upstream.post(f"{upstream_base}/v1/systemone").respond(200,json={"model": "laya-rl-agent" if provider == "laya" else model,@@ -535,7 +551,7 @@ async def test_oss_routes_with_its_own_credentials_and_accounts_the_checkpoint(assert (outcome.jev_verdict.provider, outcome.jev_verdict.model) == (provider, model)assert outcome.classifier_cost == pytest.approx(0.31)sent: Final = route.calls.last.request- assert sent.headers.get("authorization") == (None if custom_base else "Bearer oss-env-key")+ assert sent.headers.get("authorization") == expected_authorizationassert json.loads(sent.content)["model"] == modelassert len(recorder.calls) == 1assert recorder.calls[0]["response_cost"] == pytest.approx(0.31)@@ -655,7 +671,9 @@ async def test_databricks_routes_through_ai_decide_without_a_model_field_and_accassert outcome.jev_verdict.label == "SIMPLE"assert outcome.classifier_cost is Nonesent: Final = route.calls.last.request- assert sent.headers.get("authorization") == ("Bearer dapi-configured" if configured_key else "Bearer dapi-env-token")+ assert sent.headers.get("authorization") == (+ "Bearer dapi-configured" if configured_key else "Bearer dapi-env-token"+ )assert set(json.loads(sent.content)) == {"state", "questions"}assert len(recorder.calls) == 1diff --git a/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsx b/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsxindex b27be2ba966..4d0d590521f 100644--- a/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsx+++ b/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsx@@ -197,6 +197,7 @@ describe("provider_info_helpers", () => {it("should map every provider to a bundled logo except the known logoless set, never a raw /ui/assets path", () => {const knownLogolessProviders = [Providers.AUTO_ROUTER,+ Providers.Bespoke,Providers.BYTEZ,Providers.CLARIFAI,Providers.Cognition,@@ -209,6 +210,7 @@ describe("provider_info_helpers", () => {Providers.GALADRIEL,Providers.GradientAI,Providers.HEROKU,+ Providers.Laya,Providers.LEMONADE,Providers.LLAMAFILE,Providers.MARITALK,@@ -371,6 +373,13 @@ describe("provider_info_helpers", () => {expect(getPlaceholder("StrandsDecider")).toBe("strands_decider/strands-decider-2B-hobson-v19");});+ it.each([+ [Providers.Laya, "laya/english"],+ [Providers.Bespoke, "bespoke/nimble"],+ ])("should return the %s decisions model placeholder", (provider, placeholder) => {+ expect(getPlaceholder(provider)).toBe(placeholder);+ });+it("should return default gpt-3.5-turbo placeholder for unknown provider", () => {expect(getPlaceholder("UnknownProvider" as any)).toBe("gpt-3.5-turbo");});diff --git a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx b/ui/litellm-dashboard/src/components/provider_info_helpers.tsxindex 7b6c7d24706..3925118a881 100644--- a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx+++ b/ui/litellm-dashboard/src/components/provider_info_helpers.tsx@@ -88,6 +88,7 @@ export enum Providers {Azure_Speech = "Azure AI Speech",AZURE_TEXT = "Azure Text",BASETEN = "Baseten",+ Bespoke = "Bespoke Nimble",BYTEZ = "Bytez",Cerebras = "Cerebras",CHATGPT = "ChatGPT Subscription",@@ -129,6 +130,7 @@ export enum Providers {Infinity = "Infinity",JinaAI = "Jina AI",LAMBDA_AI = "Lambda Ai",+ Laya = "Laya",LEMONADE = "Lemonade",LLAMAFILE = "Llamafile",LM_STUDIO = "Lm Studio",@@ -211,6 +213,7 @@ export const provider_map: Record<string, string> = {BASETEN: "baseten",Bedrock: "bedrock",BedrockMantle: "bedrock_mantle",+ Bespoke: "bespoke",BYTEZ: "bytez",Cerebras: "cerebras",CHATGPT: "chatgpt",@@ -252,6 +255,7 @@ export const provider_map: Record<string, string> = {Infinity: "infinity",JinaAI: "jina_ai",LAMBDA_AI: "lambda_ai",+ Laya: "laya",LEMONADE: "lemonade",LLAMAFILE: "llamafile",LLAMA: "meta_llama",@@ -475,6 +479,8 @@ const providerPlaceholderMap: Partial<Record<Providers, string>> = {[Providers.SageMaker]: "sagemaker/jumpstart-dft-meta-textgeneration-llama-2-7b",[Providers.Sail]: "sail/openai/gpt-oss-120b",[Providers.SCX_AI]: "scx-ai/GLM-5.2",+ [Providers.Bespoke]: "bespoke/nimble",+ [Providers.Laya]: "laya/english",[Providers.Snowflake]: "snowflake/mistral-7b",[Providers.StrandsDecider]: "strands_decider/strands-decider-2B-hobson-v19",[Providers.Tencent]: "tencent/deepseek-v4-pro",