Skip to content

feat: add LiteLLM integration to support multiple LLM platforms #1407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

LiteLLM Integration for Multiple LLM Platforms

This PR adds integration with LiteLLM to support multiple LLM platforms through a unified interface.

Features

  • Added a new LiteLLMChatCompletions requester class that inherits from LLMAPIRequester
  • Created a YAML manifest file for the LiteLLM requester component
  • Implemented a demo script to showcase the LiteLLM integration

How to Use

  1. Install LiteLLM: pip install litellm
  2. Add a new model in the LangBot web UI with the "LiteLLM" requester
  3. Configure the model with your API key and provider settings
  4. Run the demo script: python demos/litellm_demo.py

Benefits

  • Support for 100+ LLM providers through a single interface
  • Consistent API format based on OpenAI's API
  • Easy configuration through the existing LangBot UI

Testing

The implementation has been tested locally with the demo script.

Link to Devin run: https://app.devin.ai/sessions/50dea523b85046e68d9e8b366e41b134
Requested by: Junyan Qin (Chin) ([email protected])

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant