Find answers from the community

s
shay
Offline, last seen 3 months ago
Joined September 25, 2024
Hey everyone, I am trying to use Gemini Pro through a Vertex Google API key, and was trying to use the chat engine feature, I was first starting with the example given in the documentation but every time I run my code, I keep getting the error below, and I am not able to debug what I might be doing wrong, here is the error i keep getting:

Plain Text
 .venv/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 174, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.ServiceUnavailable: 503 Getting metadata from plugin failed with error: 'str' object has no attribute 'before_request' 


Any help would be greatly appreciated!
4 comments
L
s