plane icon indicating copy to clipboard operation
plane copied to clipboard

Add support for Claude-2, Cohere Llama2, CodeLlama, Azure OpenAI, Replicate LLMs (100+LLMs)

Open ishaan-jaff opened this issue 1 year ago • 4 comments

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)

ishaan-jaff avatar Sep 07 '23 15:09 ishaan-jaff

@ishaan-jaff is attempting to deploy a commit to the Plane Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 07 '23 15:09 vercel[bot]

@pablohashescobar @vihar can i get a review on this PR ?

happy to add docs/tests if this initial commit looks good

ishaan-jaff avatar Sep 07 '23 15:09 ishaan-jaff

bump on this? @Palanikannan1437 @aaryan610 @pablohashescobar

krrishdholakia avatar Oct 04 '23 23:10 krrishdholakia

Dear @ishaan-jaff and @krrishdholakia,

We are developing a novel approach to enhance our platform by integrating additional AI engines. This improves the overall integration process and provides a more seamless experience.

sriramveeraghanta avatar Nov 20 '23 17:11 sriramveeraghanta

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Feb 08 '24 10:02 CLAassistant

@ishaan-jaff, thank you for contributing to Plane. We will be merging this PR.

pablohashescobar avatar Feb 28 '24 13:02 pablohashescobar