Closed andreped closed 6 months ago
Oh, it seems to be a bug inside ZhipuAI
it self. I managed to reproduce the issue by running:
python -c "import zhipuai"
Apprently, downgrading pydantic
fixes the issue.
So do this to fix the issue:
pip install pydantic==2.5.2
python -c "import zhipuai"
I can make a PR to try to limit pydantic
versions that can be used to support all agents.
Hmm, actually simply reinstalling pydantic
(even to latest) seems to have resolved the issue:
pip install pydantic --upgrade --force-reinstall
Are anyone able to reproduce the issue?
I'm not sure about having a native ZhipuAI integration. This was contributed by a community member but it might be worth considering the work necessary to support it going forward. Ideally I'd like to include all major options as part of the basic integration tests and I'm a little skeptical about supporting this one.
Perhaps we need to consider having something like "community" features that aren't "officially" supported?
I'm not sure about having a native ZhipuAI integration.
Sounds fine not to maintain it if the ZhipuAI integration is not commonly used with Vanna, but who knows.
Perhaps we need to consider having something like "community" features that aren't "officially" supported?
Thats a cool idea. It is quite common to do in larger projects. Like making a repo called vanna-contrib
and people could contribute modules and implementations that are not thaaat relevant for everyone, but still easily accessible (pip install vanna-contrib
).
I guess this could be achieved by depending on vanna
and its vanna.base
to allow adding different types of clients and whatnot. Then again I am not sure Vanna is ready for that move. Seems like a lot of users are mainly interested in core features and core features being improved. Do you want to maintain both repos? :P
As the issue was related to pydantic
versioning, which can be easily solved with reinstalling it, and that ZhipuAI
is not that critical for Vanna
nor actively used, I am closing this issue.
Describe the bug When I try to run tests using
ZhipuAI
I observed that imports seemed broken at launch.To Reproduce
Error logs/Screenshots
Desktop (please complete the following information where):