Closed nilpntr closed 4 months ago
Follow this example: https://github.com/tmc/langchaingo/blob/main/examples/vertex-completion-example/vertex-completion-example.go
You should still set up ADC per the link that was printed, but the WithCloudProject
option is indeed your authn
Thanks made it work!
Got this error:
google: could not find default credentials. See https://cloud.google.com/docs/authentication/external/set-up-adc for more information
because I'm not able to set any authentication related options. There are only four options available, none of which have to do with authentication: WithCloudProject, WithCloudLocation, WithDefaultModel, and WithDefaultEmbeddingModel. What more should I provide in my Vertex authentication?