We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e38446 commit f72d762Copy full SHA for f72d762
go/plugins/googleai/googleai.go
@@ -72,7 +72,7 @@ func Init(ctx context.Context, apiKey string) (err error) {
72
}()
73
74
if apiKey == "" {
75
- apiKey := os.Getenv("GOOGLE_GENAI_API_KEY")
+ apiKey = os.Getenv("GOOGLE_GENAI_API_KEY")
76
77
return fmt.Errorf("googleai.Init: Google AI requires setting GOOGLE_GENAI_API_KEY in the environment. You can get an API key at https://ai.google.dev")
78
}
0 commit comments