google / generative-ai-go

Go SDK for Google Generative AI
Apache License 2.0
488 stars 47 forks source link

genai: improve code generation command #144

Closed jba closed 2 weeks ago

jba commented 2 weeks ago

Use the cached directory for the right version of the pb.go files. This ensures that the generated code matches the version of cloud.google.com/go/ai in the go.mod file, rather than whatever happens to be checked out in the google-cloud-go repo.