Open
Conversation
Adds ModelsLab as an OpenAI-compatible LLM provider, following the existing OpenRouter/Novita pattern. ModelsLab exposes 10,000+ open-source models (Llama, Mistral, DeepSeek, etc.) via an OpenAI-compatible endpoint: https://modelslab.com/api/uncensored-chat/v1 Changes: - application/llm/modelslab.py: ModelsLabLLM class (extends OpenAILLM) - application/llm/llm_creator.py: register 'modelslab' provider - application/core/settings.py: add MODELSLAB_API_KEY env var - application/core/model_settings.py: ModelProvider.MODELSLAB enum + _add_modelslab_models() registry method - application/core/model_configs.py: MODELSLAB_MODELS list with Llama 3 8B/70B and Mistral 7B models - application/core/model_utils.py: add modelslab to provider_key_map - tests/llm/test_modelslab_llm.py: pytest tests Usage: LLM_PROVIDER=modelslab LLM_NAME=meta-llama/Meta-Llama-3-8B-Instruct MODELSLAB_API_KEY=your_key API key: https://modelslab.com/account/api-key Docs: https://docs.modelslab.com
|
@adhikjoshi is attempting to deploy a commit to the Arc53 Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds ModelsLab as an OpenAI-compatible LLM provider, following the same pattern as the existing OpenRouter and Novita integrations.
ModelsLab provides access to 10,000+ open-source models (Llama 3, Mistral, DeepSeek, and more) through an OpenAI-compatible chat endpoint.
API docs: https://docs.modelslab.com
API key: https://modelslab.com/account/api-key
Endpoint:
https://modelslab.com/api/uncensored-chat/v1Changes
application/llm/modelslab.pyModelsLabLLMclass extendingOpenAILLMapplication/llm/llm_creator.py"modelslab"providerapplication/core/settings.pyMODELSLAB_API_KEYenv varapplication/core/model_settings.pyModelProvider.MODELSLAB+_add_modelslab_models()application/core/model_configs.pyMODELSLAB_MODELS(Llama 3 8B/70B, Mistral 7B)application/core/model_utils.pymodelslabtoprovider_key_maptests/llm/test_modelslab_llm.pyUsage
Why ModelsLab?
Checklist
MODELSLAB_API_KEYwired through settings + model_utils provider_key_map