Skip to content

Commit

Permalink
change to GOOGLE_GENAI_API_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlancetaylor committed May 9, 2024
1 parent cfbb9e6 commit 9b0872f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/samples/coffee-shop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ type testAllCoffeeFlowsOutput struct {
}

func main() {
apiKey := os.Getenv("GOOGLE_API_KEY")
apiKey := os.Getenv("GOOGLE_GENAI_API_KEY")
if apiKey == "" {
fmt.Fprintln(os.Stderr, "coffee-shop example requires setting GOOGLE_API_KEY in the environment.")
fmt.Fprintln(os.Stderr, "coffee-shop example requires setting GOOGLE_GENAI_API_KEY in the environment.")
fmt.Fprintln(os.Stderr, "You can get an API key at https://ai.google.dev.")
os.Exit(1)
}
Expand Down

0 comments on commit 9b0872f

Please sign in to comment.