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

adding support for Claude, Cohere and PaLM + Model Fallback Strategy (prevent failed requests) #119

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

Conversation

krrishdholakia
Copy link

@krrishdholakia krrishdholakia commented Aug 4, 2023

Hi @assafelovic @gregdrizz ,

Noticed y'all are calling just OpenAI. I'm working on litellm (simple library to standardize LLM API Calls - https://github.com/BerriAI/litellm) and was wondering if we could be helpful.

Added support for Anthropic, Llama2, Cohere and PaLM by replacing the raw openai.ChatCompletion.acreate endpoint with acompletion from litellm.

I also noticed #117, so added a model fallback strategy - in case the initial model fails, have it try one of the backup models.

Would love to know if this helps.

@krrishdholakia krrishdholakia changed the title adding support for Claude, Cohere and PaLM adding support for Claude, Cohere and PaLM + Model Fallback Strategy (prevent failed requests) Aug 4, 2023
@krrishdholakia
Copy link
Author

Re: Llama 2 - using the Replicate endpoint https://replicate.com/replicate/llama-2-70b-chat,

so everybody should be able to access / test it.

@gururise
Copy link

Is this PR going to get merged? Would love to have LiteLLM integration so we can choose the model on the backend.

@krrishdholakia
Copy link
Author

@gururise happy to help do this in some way for you - just DM'ed on linkedin

@ishaan-jaff
Copy link

@assafelovic any update on this PR ? Can we get a review on this when possible?

@ishaan-jaff ishaan-jaff mentioned this pull request Sep 19, 2023
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.

None yet

3 participants