Skip to content

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]

Merge upstream/main - resolve conflicts to include both hyperbolic and recraft providers

Cole McIntosh34ccda10ed2c
diff --cc litellm/__init__.py
index dc18ee20b20,66850ee2091..c056e667269
--- a/litellm/__init__.py
+++ b/litellm/__init__.py
@@@ -489,9 -503,9 +489,10 @@@ elevenlabs_models: List = [
dashscope_models: List = []
moonshot_models: List = []
v0_models: List = []
+ morph_models: List = []
lambda_ai_models: List = []
+hyperbolic_models: List = []
-
+ recraft_models: List = []
def is_bedrock_pricing_only_model(key: str) -> bool:
"""
@@@ -672,10 -686,12 +673,14 @@@ def add_known_models()
moonshot_models.append(key)
elif value.get("litellm_provider") == "v0":
v0_models.append(key)
+ elif value.get("litellm_provider") == "morph":
+ morph_models.append(key)
elif value.get("litellm_provider") == "lambda_ai":
lambda_ai_models.append(key)
+ elif value.get("litellm_provider") == "hyperbolic":
+ hyperbolic_models.append(key)
+ elif value.get("litellm_provider") == "recraft":
+ recraft_models.append(key)
add_known_models()
@@@ -830,8 -848,9 +837,10 @@@ models_by_provider: dict =
"dashscope": dashscope_models,
"moonshot": moonshot_models,
"v0": v0_models,
+ "morph": morph_models,
"lambda_ai": lambda_ai_models,
+ "hyperbolic": hyperbolic_models,
+ "recraft": recraft_models,
}
# mapping for those models which have larger equivalents
@@@ -1152,8 -1171,8 +1161,9 @@@ from .llms.nebius.chat.transformation i
from .llms.dashscope.chat.transformation import DashScopeChatConfig
from .llms.moonshot.chat.transformation import MoonshotChatConfig
from .llms.v0.chat.transformation import V0ChatConfig
+ from .llms.morph.chat.transformation import MorphChatConfig
from .llms.lambda_ai.chat.transformation import LambdaAIChatConfig
+from .llms.hyperbolic.chat.transformation import HyperbolicChatConfig
from .main import * # type: ignore
from .integrations import *
from .llms.custom_httpx.async_client_cleanup import close_litellm_async_clients
diff --cc litellm/constants.py
index c4be92d643a,3089ae131d1..a0dcd80c073
--- a/litellm/constants.py
+++ b/litellm/constants.py
@@@ -409,8 -410,8 +410,9 @@@ openai_compatible_endpoints: List =
"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
"https://api.moonshot.ai/v1",
"https://api.v0.dev/v1",
+ "https://api.morphllm.com/v1",
"https://api.lambda.ai/v1",
+ "https://api.hyperbolic.xyz/v1",
]
@@@ -449,8 -450,8 +451,9 @@@ openai_compatible_providers: List =
"dashscope",
"moonshot",
"v0",
+ "morph",
"lambda_ai",
+ "hyperbolic",
]
openai_text_completion_compatible_providers: List = (
[ # providers that support `/v1/completions`
diff --cc litellm/types/utils.py
index 249e03938c6,a025f387a15..acff566a3f6
--- a/litellm/types/utils.py
+++ b/litellm/types/utils.py
@@@ -2314,7 -2315,7 +2315,8 @@@ class LlmProviders(str, Enum)
LLAMA = "meta_llama"
NSCALE = "nscale"
PG_VECTOR = "pg_vector"
+ HYPERBOLIC = "hyperbolic"
+ RECRAFT = "recraft"
# Create a set of all provider values for quick lookup