Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs-snippets_test.go #212

Closed
wants to merge 1 commit into from

Conversation

logankilpatrick
Copy link
Member

Updates to the quickstart

@jba
Copy link
Collaborator

jba commented Sep 16, 2024

Why the change in the env var name? GOOGLE_API_KEY could be an API key for anything at google.

if err != nil {
log.Fatal(err)
}
defer client.Close()

// [START text_gen_text_only_prompt]
import "github.com/google/generative-ai-go/genai"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import lines must be at the top of the file, just below the package declaration.

@eliben eliben added the status:awaiting user response Awaiting a response from the author label Sep 19, 2024
@eliben eliben closed this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting user response Awaiting a response from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants