Open charl3sj opened 1 week ago
@anada10 I remember now, this wasn't made available in frontend yet because vertex only takes credentials from an environment variable. We can't support users providing their own credentials: https://python.langchain.com/v0.2/docs/integrations/chat/google_vertex_ai_palm/#credentials
@tomlynchRNA what if we use OAUTH for GCP instead?
@anada10 I don't think so, it has to be the credentials (like credentials json). They make it pretty clear in their docs/code comments:
But good news, I checked the ChatVertexAI source code in Google repo and found this:
So, turns out there is an undocumented option to pass the credentials directly just like other models :smile:
We need an update in the webapp and agent-backend to pass credentials
, project
and location
:
cc @charl3sj
Describe the bug We've added support for Gemini chat model via VertexAI in the backend but the corresponding frontend changes are missing.
Expected behavior User should be allowed to select Vertex and Gemini as a model.
Screenshots
Refer https://github.com/rnadigital/agentcloud/blob/e19ff6c75f44acfd5cdead679ee7b3ac0481453d/agent-backend/src/models/mongo.py#L29