From b67bbee3a0ef13af9dd616d521e5decaef3aafa4 Mon Sep 17 00:00:00 2001 From: Adhik Joshi Date: Thu, 19 Mar 2026 22:25:06 +0530 Subject: [PATCH] fix: add modelslab models and fix base_url --- litellm/llms/openai_like/providers.json | 7 +++++++ model_prices_and_context_window.json | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/litellm/llms/openai_like/providers.json b/litellm/llms/openai_like/providers.json index 275c352b39e..dde0dfff6de 100644 --- a/litellm/llms/openai_like/providers.json +++ b/litellm/llms/openai_like/providers.json @@ -101,5 +101,12 @@ "param_mappings": { "max_completion_tokens": "max_tokens" } + }, + "modelslab": { + "base_url": "https://modelslab.com/uncensored-chat/v1", + "api_key_env": "MODELSLAB_API_KEY", + "param_mappings": { + "max_completion_tokens": "max_tokens" + } } } diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 181045809f8..453ea483a4a 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -37032,5 +37032,23 @@ "supports_reasoning": true, "supports_response_schema": true, "supports_tool_choice": true + }, + "modelslab/llama-3.1-8b-uncensored": { + "input_cost_per_token": 0.0, + "litellm_provider": "modelslab", + "max_input_tokens": 131072, + "max_output_tokens": 8192, + "max_tokens": 8192, + "mode": "chat", + "output_cost_per_token": 0.0 + }, + "modelslab/llama-3.1-70b-uncensored": { + "input_cost_per_token": 0.0, + "litellm_provider": "modelslab", + "max_input_tokens": 131072, + "max_output_tokens": 8192, + "max_tokens": 8192, + "mode": "chat", + "output_cost_per_token": 0.0 } }