[WEB - 595] feat: Add support for Claude-2, Cohere Llama2, CodeLlama, Azure OpenAI, Replicate LLMs (100+LLMs)
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)
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.
:white_check_mark: pablohashescobar
:x: ishaan-jaff
You have signed the CLA already but the status is still pending? Let us recheck it.
@ishaan-jaff, we moved your changes to a different branch to validate it. Requesting you to please sign the CLA.
@pablohashescobar Excited about integrating LLMs with LiteLLM for Azure OpenAI support.
@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.