Skip to content
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

[Bug Fix] - Pydantic error in litellm >=1.40.0 #4289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ishaan-jaff
Copy link
Contributor

@ishaan-jaff ishaan-jaff commented Jun 19, 2024

Fixes this

Recently upgraded our Litellm SDK version from 1.37.12 to 1.40.0 in our prod environment. The build itself was successful (i.e : was able to pip install all the requirements) but when running
from litellm import completion

I get the following error :
Traceback (most recent call last):
File "", line 1, in
File "evals\env\lib\site-packages\litellm_init_.py", line 17, in
from litellm.proxy.types import (
File "evals\env\lib\site-packages\litellm\proxy_types.py", line 1, in
from pydantic import BaseModel, Extra, Field, model_validator, Json, ConfigDict
ImportError: cannot import name 'model_validator' from 'pydantic' (evals\env\lib\site-packages\pydantic_init
.cp310-win_amd64.pyd)

Relevant issues

Type

πŸ†• New Feature
πŸ› Bug Fix
🧹 Refactoring
πŸ“– Documentation
πŸš„ Infrastructure
βœ… Test

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

Copy link

vercel bot commented Jun 19, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
litellm βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jun 19, 2024 8:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant