MiniChain icon indicating copy to clipboard operation
MiniChain copied to clipboard

adding support for anthropic, cohere, replicate and azure

Open krrishdholakia opened this issue 1 year ago • 0 comments

Hi @srush

Following on from this issue -https://github.com/srush/MiniChain/issues/22. I'm working on litellm (simple library to standardize LLM API Calls - https://github.com/BerriAI/litellm) and was wondering if we could be helpful.

I added support for Palm, Claude, Azure, Cohere and Llama2 (via Replicate) by replacing the OpenAI endpoint with litellm. The code is pretty similar to the OpenAI class - as litellm follows the same pattern as the openai-python sdk.

Would love to know if this helps.

Happy to add additional tests / update documentation, if the initial PR looks good to you.

krrishdholakia avatar Aug 11 '23 21:08 krrishdholakia