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(proxy): register transcribe as a known provider for model grants
Yuneng Jiang044f88ee9194
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex fcfc4768ff3..e17ab613dac 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -701,6 +701,7 @@ github_copilot_models: Set = set()chatgpt_models: Set = set()minimax_models: Set = set()aws_polly_models: Set = set()+transcribe_models: Set = set()gigachat_models: Set = set()llamagate_models: Set = set()reducto_models: Set = set()@@ -980,6 +981,8 @@ def _populate_provider_model_sets(model_cost_map: Dict) -> None:minimax_models.add(key)elif value.get("litellm_provider") == "aws_polly":aws_polly_models.add(key)+ elif value.get("litellm_provider") == "transcribe":+ transcribe_models.add(key)elif value.get("litellm_provider") == "gigachat":gigachat_models.add(key)elif value.get("litellm_provider") == "llamagate":@@ -1227,6 +1230,7 @@ def _build_models_by_provider() -> dict:"chatgpt": chatgpt_models,"minimax": minimax_models,"aws_polly": aws_polly_models,+ "transcribe": transcribe_models,"gigachat": gigachat_models,"llamagate": llamagate_models,"reducto": reducto_models,diff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex c63d971b89b..dbd293a7dc8 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -3989,6 +3989,7 @@ class LlmProviders(str, Enum):REDUCTO = "reducto"RUNWAYML = "runwayml"AWS_POLLY = "aws_polly"+ TRANSCRIBE = "transcribe"HUGGINGFACE = "huggingface"TOGETHER_AI = "together_ai"OPENROUTER = "openrouter"diff --git a/tests/test_litellm/proxy/auth/test_model_checks.py b/tests/test_litellm/proxy/auth/test_model_checks.pyindex 3c6733cb86d..f10622e954b 100644--- a/tests/test_litellm/proxy/auth/test_model_checks.py+++ b/tests/test_litellm/proxy/auth/test_model_checks.py@@ -879,3 +879,18 @@ def test_get_complete_model_list_sentinel_only_grants_nothing():infer_model_from_keys=False,)assert result == []+++def test_transcribe_is_a_known_provider_for_wildcard_expansion():+ import litellm+ from litellm.proxy.auth.model_checks import (+ get_known_models_from_wildcard,+ get_provider_models,+ )++ assert "transcribe" in litellm.models_by_provider+ assert "transcribe/StartTranscriptionJob" in litellm.models_by_provider["transcribe"]+ assert get_provider_models("transcribe") == ["transcribe/StartTranscriptionJob"]+ assert get_known_models_from_wildcard("transcribe/*") == [+ "transcribe/StartTranscriptionJob"+ ]diff --git a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.pyindex 0d82ed778f5..aaa3b205312 100644--- a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py+++ b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py@@ -384,6 +384,7 @@ ADD_MODEL_UNLISTED_PROVIDERS: Final = frozenset("tencent","tensormesh","text-completion-inception",+ "transcribe","valkey","xiaomi_mimo","zai",