You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to add ChatVertexAI as a provider but it has been broken in langchain till fixed in langchain v0.0.239.
I have to do some hacky monkey patching to langchain in v0.0.220 to get it to work.
I would prefer for jupyter-ai to support langchain>=0.0.239 so I can productionalise it without ugly hacks that may cause issues.
Proposed Solution
Currently the only part I found incompatible with langchain v0.0.239 is in LearnChatHandler. In v0.0.239, langchain.schema.BaseRetriever (which LearnChatHandler inherits) was changed to be a pydantic.BaseModel. Would need a bit of refactoring to make it compatible.
Additional context
I am using jupyter-ai in a corporate setting where I add custom providers, one of which is ChatVertexAI, by adding to the "jupyter_ai.model_providers" entrypoint.
The text was updated successfully, but these errors were encountered:
For that at least as a temporary fix I am able to just override the _generate method in the Provider to remove that empty AIMessage before passing it to the parent class. So in terms of prioritisation, having the langchain version is much more of an issue to me.
Problem
I want to be able to add ChatVertexAI as a provider but it has been broken in langchain till fixed in langchain v0.0.239.
I have to do some hacky monkey patching to langchain in v0.0.220 to get it to work.
I would prefer for jupyter-ai to support langchain>=0.0.239 so I can productionalise it without ugly hacks that may cause issues.
Proposed Solution
Currently the only part I found incompatible with langchain v0.0.239 is in
LearnChatHandler
. In v0.0.239,langchain.schema.BaseRetriever
(which LearnChatHandler inherits) was changed to be a pydantic.BaseModel. Would need a bit of refactoring to make it compatible.Additional context
I am using jupyter-ai in a corporate setting where I add custom providers, one of which is ChatVertexAI, by adding to the "jupyter_ai.model_providers" entrypoint.
The text was updated successfully, but these errors were encountered: