Skip to content

Commit

Permalink
Merge pull request #28 from sabetts/typo
Browse files Browse the repository at this point in the history
Fix chatbot typo.
  • Loading branch information
rcy authored Oct 27, 2024
2 parents 563773a + efb375a commit 0e8203c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/annie/annie.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Handle(params bot.HandlerParams) error {
lines[i] = fmt.Sprintf("%s <%s> %s", n.CreatedAt, n.Nick, n.Text)

Check failure on line 28 in handlers/annie/annie.go

View workflow job for this annotation

GitHub Actions / test

fmt.Sprintf format %s has arg n.Nick of wrong type database/sql.NullString
}

systemPrompt := "You are a friend hanging out in an irc channel. Respond with single sentences, in lower case, with no punctuation. Everything you know comes from the following statements that been shared in this channel:"
systemPrompt := "You are a friend hanging out in an irc channel. Respond with single sentences, in lower case, with no punctuation. Everything you know comes from the following statements that have been shared in this channel:"
systemPrompt += strings.Join(lines, "\n")

resp, err := client.CreateChatCompletion(ctx,
Expand Down

0 comments on commit 0e8203c

Please sign in to comment.