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
Merge branch 'main' into heroku-llms
Timothy Lowrimorec0d82545d30c
diff --cc litellm/__init__.pyindex c434a87fca7,7c4a9211455..619a6ff26b9--- a/litellm/__init__.py+++ b/litellm/__init__.py@@@ -233,7 -233,7 +233,8 @@@ novita_api_key: Optional[str] = Nonsnowflake_key: Optional[str] = Nonegradient_ai_api_key: Optional[str] = Nonenebius_key: Optional[str] = None+heroku_key: Optional[str] = None+ cometapi_key: Optional[str] = Nonecommon_cloud_provider_auth_params: dict = {"params": ["project", "region_name", "token"],"providers": ["vertex_ai", "bedrock", "watsonx", "azure", "vertex_ai_beta"],@@@ -1204,9 -1204,9 +1210,10 @@@ from .llms.azure.azure importAzureOpenAIError,AzureOpenAIAssistantsAPIConfig,)-+from .llms.heroku.chat.transformation import HerokuChatConfig+ from .llms.cometapi.chat.transformation import CometAPIConfigfrom .llms.azure.chat.gpt_transformation import AzureOpenAIConfig+ from .llms.azure.chat.gpt_5_transformation import AzureOpenAIGPT5Configfrom .llms.azure.completion.transformation import AzureOpenAITextConfigfrom .llms.hosted_vllm.chat.transformation import HostedVLLMChatConfigfrom .llms.llamafile.chat.transformation import LlamafileChatConfigdiff --cc litellm/litellm_core_utils/get_llm_provider_logic.pyindex ed8d232722e,e9a1eba719e..50ea8ab1d73--- a/litellm/litellm_core_utils/get_llm_provider_logic.py+++ b/litellm/litellm_core_utils/get_llm_provider_logic.py@@@ -358,8 -358,9 +358,11 @@@ def get_llm_provider( # noqa: PLR091# bytez modelselif model.startswith("bytez/"):custom_llm_provider = "bytez"+ elif model.startswith("heroku/"):+ custom_llm_provider = "heroku"+ # cometapi models+ elif model.startswith("cometapi/"):+ custom_llm_provider = "cometapi"elif model.startswith("oci/"):custom_llm_provider = "oci"if not custom_llm_provider:diff --cc litellm/types/utils.pyindex 3818f4a2c86,ec56edf92a3..314bc165ad5--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@@ -2330,7 -2330,7 +2330,8 @@@ class LlmProviders(str, Enum)PG_VECTOR = "pg_vector"HYPERBOLIC = "hyperbolic"RECRAFT = "recraft"+ HEROKU = "heroku"+ COMETAPI = "cometapi"OCI = "oci"AUTO_ROUTER = "auto_router"DOTPROMPT = "dotprompt"