-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add support for Azure, OpenAI, Palm, Anthropic, Cohere Models - using litellm #77
Conversation
cc @iuiaoin can i get a review on this |
# https://litellm.readthedocs.io/en/latest/supported/ | ||
from bot.litellm import liteLLMChatGPTBot | ||
self.bot = liteLLMChatGPTBot() | ||
|
||
from bot.chatgpt import ChatGPTBot | ||
|
||
self.bot = ChatGPTBot() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The self.bot will always be assigned by ChatGPTBot instance, seems there needs to be an else block here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch updated this
@ishaan-jaff Thanks for your pull request! I got a comment for you |
@iuiaoin thanks for the review, I updated the code + added some more info on the readme |
@ishaan-jaff LGMT,approved. Yet seems ci failed |
@iuiaoin fixed lint errors |
I'm the maintainer of litellm https://github.com/BerriAI/litellm - a simple & light package to call OpenAI, Azure, Cohere, Anthropic, Replicate API Endpoints
This PR adds support for models from all the above mentioned providers (by creating a class
liteLLMChatGPTBot
)Here's a sample of how it's used: