diff --git a/litellm/constants.py b/litellm/constants.py index ed89474600e..d7b71efc252 100644 --- a/litellm/constants.py +++ b/litellm/constants.py @@ -857,6 +857,7 @@ openai_compatible_providers: Final[list] = [ "docker_model_runner", "ragflow", "pinstripes", # Pinstripes - JSON-configured provider + "melious", # Melious - JSON-configured provider "darkbloom", "meta", # Meta Model API (Muse Spark) - JSON-configured provider "cognition", diff --git a/litellm/llms/openai_like/providers.json b/litellm/llms/openai_like/providers.json index a458a209ea9..874dd556745 100644 --- a/litellm/llms/openai_like/providers.json +++ b/litellm/llms/openai_like/providers.json @@ -159,6 +159,21 @@ "max_completion_tokens": "max_tokens" } }, + "melious": { + "base_url": "https://api.melious.ai/v1", + "api_key_env": "MELIOUS_API_KEY", + "api_base_env": "MELIOUS_API_BASE", + "param_mappings": { + "max_completion_tokens": "max_tokens" + }, + "supported_endpoints": [ + "/v1/chat/completions", + "/v1/messages", + "/v1/embeddings", + "/v1/images/generations", + "/v1/audio/transcriptions" + ] + }, "empiriolabs": { "base_url": "https://api.empiriolabs.ai/v1", "api_key_env": "EMPIRIOLABS_API_KEY", diff --git a/litellm/provider_endpoints_support_backup.json b/litellm/provider_endpoints_support_backup.json index 86c14fb4cd8..06ce6c17ff9 100644 --- a/litellm/provider_endpoints_support_backup.json +++ b/litellm/provider_endpoints_support_backup.json @@ -1412,6 +1412,23 @@ "interactions": true } }, + "melious": { + "display_name": "Melious (`melious`)", + "url": "https://docs.litellm.ai/docs/providers/melious", + "endpoints": { + "chat_completions": true, + "messages": true, + "responses": false, + "embeddings": true, + "image_generations": true, + "audio_transcriptions": true, + "audio_speech": false, + "moderations": false, + "batches": false, + "rerank": false, + "a2a": false + } + }, "mistral": { "display_name": "Mistral AI API (`mistral`)", "url": "https://docs.litellm.ai/docs/providers/mistral", diff --git a/litellm/types/utils.py b/litellm/types/utils.py index 58103b84749..5db8f157d88 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -3831,6 +3831,7 @@ class LlmProviders(str, Enum): XIAOMI_MIMO = "xiaomi_mimo" TENSORMESH = "tensormesh" LIBERTAI = "libertai" + MELIOUS = "melious" PINSTRIPES = "pinstripes" COGNITION = "cognition" SCX_AI = "scx-ai" diff --git a/provider_endpoints_support.json b/provider_endpoints_support.json index 1d8d374c2c4..70344192dfc 100644 --- a/provider_endpoints_support.json +++ b/provider_endpoints_support.json @@ -1527,6 +1527,23 @@ "interactions": true } }, + "melious": { + "display_name": "Melious (`melious`)", + "url": "https://docs.litellm.ai/docs/providers/melious", + "endpoints": { + "chat_completions": true, + "messages": true, + "responses": false, + "embeddings": true, + "image_generations": true, + "audio_transcriptions": true, + "audio_speech": false, + "moderations": false, + "batches": false, + "rerank": false, + "a2a": false + } + }, "mistral": { "display_name": "Mistral AI API (`mistral`)", "url": "https://docs.litellm.ai/docs/providers/mistral",