-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Labels
api:gemini-apiIssues related to Gemini APIIssues related to Gemini APIpriority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Hello,
I am attempting to connect to Vertex AI Backend using the go-genai library for using gemini models.
Additionally i would like to use WIF for authentication. My question is :
based on the code here why is WIF / or automatic credential look up only respected when httpclient is not set up in the clientConfig?
What if we would like to use the WIF and a wrapped httpclient , lets say with specific error codes being set as retry options?
The error message received when httpclient option was provided was
Error 401, Message: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project., Status: UNAUTHENTICATED, Details: [map[@type:type.googleapis.com/google.rpc.ErrorInfo domain:googleapis.com metadata:map[method:google.cloud.aiplatform.v1beta1.PredictionService.GenerateContent service:aiplatform.googleapis.com] reason:CREDENTIALS_MISSING]]
Regards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api:gemini-apiIssues related to Gemini APIIssues related to Gemini APIpriority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.