Skip to content
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

More general LLM backend support #504

Open
you-n-g opened this issue Dec 11, 2024 · 2 comments
Open

More general LLM backend support #504

you-n-g opened this issue Dec 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@you-n-g
Copy link
Contributor

you-n-g commented Dec 11, 2024

🌟 Feature Description

Currently, only limited numbers of types of LLM is supported in RD-Agent.

Maybe we can add support https://docs.litellm.ai/docs/ to the backend (even replace current implementation) to support more LLMs.

Motivation

  1. Application scenario
  2. Related works (Papers, Github repos etc.):
  3. Any other relevant and important information:

Alternatives

Additional Notes

@you-n-g you-n-g added the enhancement New feature or request label Dec 11, 2024
@ricor07
Copy link

ricor07 commented Dec 26, 2024

Hello, I'd like to join the project by working on this. With a bit of assistance i think I would be able to complete the enhancement task. Can you assign me the issue? Thank you

@SunsetWolf
Copy link
Collaborator

Hi, @ricor07

Great, contributing code is very welcome and we provide a template on which you can base your finished code.

Create a new backend/deprec folder under the rdagent/oai folder.

Store the current configuration and code

Implement litellm docking in rdagent/oai/backend folder.

In backend/base.py there is a dummy class APIBackend, the new code needs to inherit from APIBackend.
Code for implementing litellm docking in backend/litellm.py

The template is in the branch name: litellm_backend.

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

No branches or pull requests

3 participants