diff --git a/go/samples/coffee-shop/main.go b/go/samples/coffee-shop/main.go index 8a304483f..953eb8fe5 100644 --- a/go/samples/coffee-shop/main.go +++ b/go/samples/coffee-shop/main.go @@ -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) }