Open ishaan-jaff opened 1 year ago
soft-github-policy-service agree company="BerriAI"
@deepika087 @dciborow can you please take a look at this PR? Happy to add tests/docs if this initial commit looks good😊
@deepika087 @dciborow can you please take a look at this PR? Happy to add tests/docs if this initial commit looks good😊
sorry for the delay, will take a look, and will have to review the new package.
I might want to keep the old options around, but we could perhaps add a LITE_LLM env var based toggle for this. Let me ponder.
Update: I'm not sure I see a value in making this change yet. While the package provides ability to call other types of APIs, not sure how the code would handle that. Seems like right now we would still just support Azure and OpenAI.
if you have a way to really clean up this section with your package, while also making it easier to use other services i'll reconsider. For example, would love to see to handle this if/else statement in your code directly instead.
Description
This PR adds support for models from all the above mentioned providers using litellm https://github.com/BerriAI/litellm - a simple & light package to call OpenAI, Azure, Cohere, Anthropic API Endpoints
Here's a sample of how it's used:
Testing
Local testing: Done and passed
Additional context