Skip to content

Commit

Permalink
no flow no init
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthecheung committed Nov 15, 2024
1 parent 3bfaf11 commit d286e69
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions go/internal/doc-snippets/init/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

// Import Genkit and the Google AI plugin
"github.com/firebase/genkit/go/ai"
"github.com/firebase/genkit/go/genkit"
"github.com/firebase/genkit/go/plugins/googleai"
)

Expand Down Expand Up @@ -57,13 +56,5 @@ func main() {
// LLM call.
text := resp.Text()
println(text)

// Initialize Genkit and start a flow server. This call must come last,
// after all of your plug-in configuration and flow definitions. When you
// pass a nil configuration to Init, Genkit starts a local flow server,
// which you can interact with using the developer UI.
if err := genkit.Init(ctx, nil); err != nil {
log.Fatal(err)
}
}
// [END main]

0 comments on commit d286e69

Please sign in to comment.