Closed cregouby closed 4 months ago
thanks for raising a feature request!
@cregouby would you like to contribute yourself maybe?
I would be glad to propose a contribution, even if I'm not sure I'll be technically able to. Any hint on where to start on ? Thanks !
I'd suppose you'll need to add additional param to _VertexAICommon
(with the default value) and pass it here:
https://github.com/langchain-ai/langchain-google/blob/62cdf5285d35d7700bf5d52f5cfdbfcf84d8f1d7/libs/vertexai/langchain_google_vertexai/_base.py#L159
Hello,
It seems that https://github.com/langchain-ai/langchain-google/pull/183 fix the issue.
Description
Since version 1.43.0,
google-vertexai-aiplatform
has added transport override to enable the use of REST instead of GRPC (6ab4084).This is a key feature for enterprise where security setup prevent gRPC communications, and thus for large scale adoption.
Current behavior
leads to a gRPC error message (expected here as gRPC is filtered by organisation)
Expected behavior
api_transport="rest"
is transparently passed as transport to the vertexai.language_models ModelsWith any error message (if any) being related to HTTP, not gRPC.