More general LLM backend support
π 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
- Application scenario
- Related works (Papers, Github repos etc.):
- Any other relevant and important information:
Alternatives
Additional Notes
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
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/deprecfolder under therdagent/oaifolder.Store the current configuration and code
Implement
litellmdocking inrdagent/oai/backendfolder.In
backend/base.pythere is a dummy classAPIBackend, the new code needs to inherit fromAPIBackend. Code for implementinglitellmdocking inbackend/litellm.py
The template is in the branch name: litellm_backend.
θ―·δΌε ζ―ζ DEEPSEEK R1樑εγ