Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Bearer auth to ChatGoogleAI #254

Open
weaversam8 opened this issue Feb 11, 2025 · 0 comments
Open

Add support for Bearer auth to ChatGoogleAI #254

weaversam8 opened this issue Feb 11, 2025 · 0 comments

Comments

@weaversam8
Copy link

This library already supports the use of Google OAuth credentials in ChatVertexAI, but ChatGoogleAI currently only supports the query string "api key". While poorly documented, "Google AI Studio" (the service ChatGoogleAI interfaces with) does support oauth credentials, as described here.

This is probably an easy change, we'd just need to extend ChatGoogleAI to support specifying whether the :api_key field should be sent as a query string or an Authorization: Bearer xxx header. (A more complicated way to do this could be to add a callback for clients to modify the Req before it's sent, but this seems like something that should be supported without workarounds.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant