google / google/generative-ai-go

Credentials file authentication failing

Open
#247 1 comment 0 reactions 0 assignees View on GitHub
p2 status:triaged type:bug
Dominant language
Go
Stars
857
Forks
104
PR merge metrics
No merged PRs in 30d

Description

### Description of the bug:

When trying to use the option `option.WithCredentialsFile` to authenticate my client, it fails because of this function:

![Image](https://github.com/user-attachments/assets/4b401c28-8410-4c00-9796-24590285efd0)

This is because internally, it calls withCredFile

![Image](https://github.com/user-attachments/assets/795475f1-0ec1-4e01-b9de-b7f434c399d6)

So the type should be "option.withCredFile"

### Actual vs expected behavior:

_No response_

### Any other information you'd like to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.