mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
Vertex AI API key refresh #3841
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aryzle on GitHub (Feb 14, 2025).
Feature Request
Is your feature request related to a problem? Please describe.
When using Google Vertex AI, the API key expires every 1-12 hours (1 by default). Currently there's no way to automatically refresh the key, so it has to be done manually through the admin UI or via an API request to the
/openai/config/updateendpoint.Describe the solution you'd like
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/call-vertex-using-openai-library#refresh_your_credentials
There is an example here of refreshing creds automatically for google APIs. If there's a way to designate that we're using Vertex AI, then the app could refresh the token when it expires.
Describe alternatives you've considered
Currently you can either update the key manually in the ui or through the
/openai/config/updateendpoint. I've automated this by running a cron that updated the key every 55m.Context
This would likely be helpful for other APIs as well, not just Vertex AI