You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm the maintainer of litellm https://github.com/BerriAI/litellm/ - a lightweight package to simplify LLM API calls - Azure, OpenAI, Cohere, Anthropic, Replicate. Manages input/output translation
and was hoping to work on an example on how to make an app using multiple LLMs
Here's how litellm calls work:
fromlitellmimportcompletion## set ENV variablesos.environ["OPENAI_API_KEY"] ="openai key"os.environ["COHERE_API_KEY"] ="cohere key"messages= [{ "content": "Hello, how are you?","role": "user"}]
# openai callresponse=completion(model="gpt-3.5-turbo", messages=messages)
# cohere callresponse=completion("command-nightly", messages)
The text was updated successfully, but these errors were encountered:
I'm the maintainer of litellm https://github.com/BerriAI/litellm/ - a lightweight package to simplify LLM API calls - Azure, OpenAI, Cohere, Anthropic, Replicate. Manages input/output translation
and was hoping to work on an example on how to make an app using multiple LLMs
Here's how litellm calls work:
The text was updated successfully, but these errors were encountered: