-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add LiteLLM provider for OpenAI API compatible models #2606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4e48bb7 to
785ffbe
Compare
|
@DouweM Pipeline is failing due to: I am not sure what to do. In the |
| object: model | ||
| owned_by: Cerebras | ||
| object: list | ||
| code: wrong_api_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you restore this file please? That may also fix the coverage issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be on the master branch? https://github.com/pydantic/pydantic-ai/blob/main/tests/models/cassettes/test_model_names/test_known_model_names.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok it's green now. I just needed to rebase. Previously it was not rebased.
36ef733 to
77436fc
Compare
77436fc to
a5f239d
Compare
|
@mochow13 Thanks Mottakin, nice work! |
The MR adds support for LiteLLM in Pydantic AI. The idea is to use a
LiteLLMProviderforOpenAIModelsince LiteLLM API is OpenAI API compatible.Closes #1496