Skip to content

Commit

Permalink
fix: updated the genkit init templat for Go to reflect the latest c…
Browse files Browse the repository at this point in the history
…hange (#735)
  • Loading branch information
pavelgj authored Aug 1, 2024
1 parent a9af53c commit 6993faf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions genkit-tools/cli/config/main.go.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ func $GENKIT_FUNC_NAME() {
// convert it to a string, but more complicated flows might coerce the
// response into structured output or chain the response into another
// LLM call, etc.
text, err := resp.Text()
if err != nil {
return "", fmt.Errorf("menuSuggestionFlow: %v", err)
}
text := resp.Text()
return text, nil
})

Expand Down

0 comments on commit 6993faf

Please sign in to comment.