You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
The text was updated successfully, but these errors were encountered:
This library already supports the use of Google OAuth credentials in
ChatVertexAI
, butChatGoogleAI
currently only supports the query string "api key". While poorly documented, "Google AI Studio" (the serviceChatGoogleAI
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 anAuthorization: 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.)The text was updated successfully, but these errors were encountered: