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

fix pydantic version error #80

Merged
merged 2 commits into from
Aug 8, 2023
Merged

fix pydantic version error #80

merged 2 commits into from
Aug 8, 2023

Conversation

ishaan-jaff
Copy link
Contributor

⚠️ Notice: Apply a label to this pull request in one the following three labels: 👉

  • bug: Fix something isn't working
  • enhancement: Enhance existing features
  • feature: Add brand new features

Addressing #79 (comment)

Looks like it was caused because anthropic uses pydantic ModelField https://github.com/pydantic/pydantic/blob/5e7d43e0269c6118f63a02bad04328b61e8bfe69/pydantic/v1/fields.py#L365

  • This fix bumps the version of pydantic used by wechat-gptbot
  • bumps the version of litellm used, litellm now requires a pydantic version of 2.1.1
  • I'm working on making litellm have less dependencies - it should only try installing anthropic if a user is using it (this would prevent errors seen in the above issue)

@ishaan-jaff
Copy link
Contributor Author

latest version here: https://pypi.org/project/litellm/

@iuiaoin iuiaoin added the bug Something isn't working label Aug 8, 2023
@iuiaoin iuiaoin merged commit d40e0f8 into iuiaoin:main Aug 8, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants