diff --git a/litellm/constants.py b/litellm/constants.py index 5f8fa203b37..cb23e4a00c1 100644 --- a/litellm/constants.py +++ b/litellm/constants.py @@ -965,6 +965,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 fe10293c420..ae2e6e6bec2 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 dbeaccdda2d..7621a1f9727 100644 --- a/litellm/provider_endpoints_support_backup.json +++ b/litellm/provider_endpoints_support_backup.json @@ -1450,6 +1450,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 00c55b35182..02dc7dca476 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -4043,6 +4043,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 c71f4a82a4a..95bb30dc921 100644 --- a/provider_endpoints_support.json +++ b/provider_endpoints_support.json @@ -1565,6 +1565,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",