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

[WEB - 595] feat: Add support for Claude-2, Cohere Llama2, CodeLlama, Azure OpenAI, Replicate LLMs (100+LLMs) #3828

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

pablohashescobar
Copy link
Collaborator

@pablohashescobar pablohashescobar commented Feb 28, 2024

[WEB - 595]

This PR adds support for the above mentioned LLMs using LiteLLM https://github.com/BerriAI/litellm/
LiteLLM is a lightweight package to simplify LLM API calls - use any llm as a drop in replacement for gpt-3.5-turbo.

Example

from litellm import completion

## set ENV variables
os.environ["OPENAI_API_KEY"] = "openai key"
os.environ["COHERE_API_KEY"] = "cohere key"

messages = [{ "content": "Hello, how are you?","role": "user"}]

# openai call
response = completion(model="gpt-3.5-turbo", messages=messages)

# cohere call
response = completion(model="command-nightly", messages)

# anthropic call
response = completion(model="claude-instant-1", messages=messages)

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ pablohashescobar
❌ ishaan-jaff
You have signed the CLA already but the status is still pending? Let us recheck it.

@pablohashescobar
Copy link
Collaborator Author

@ishaan-jaff, we moved your changes to a different branch to validate it. Requesting you to please sign the CLA.

@pablohashescobar pablohashescobar changed the title [WEB - 595] dev: litellm [WEB - 595] feat: Add support for Claude-2, Cohere Llama2, CodeLlama, Azure OpenAI, Replicate LLMs (100+LLMs) Feb 29, 2024
@sats268842
Copy link

@pablohashescobar Excited about integrating LLMs with LiteLLM for Azure OpenAI support.

@pablohashescobar
Copy link
Collaborator Author

@sats268842 happy to hear about your excitement for integrating LLMs with LiteLLM for Azure OpenAI support! However, we are unable to merge the PR at this moment because the author hasn't signed the Contributor License Agreement (CLA) yet.

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

Successfully merging this pull request may close these issues.

None yet

4 participants