textgrad
textgrad copied to clipboard
Gemini: Authorization through VertexAI instead of API Key
For Gemini, seems like only direct API based key authorization is currently enabled? https://github.com/zou-group/textgrad/blob/60198d377b2ef5ad5a4ce4873b126dd8454296e7/textgrad/engine/gemini.py#L30
Trying to access Gemini through Google Vertex API (Google Cloud)
gcloud auth application-default login
If I am not missing something, then I might do a PR or maybe someone else is already planning to do so.