Skip to content

Commit

Permalink
annie is annie
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Oct 31, 2024
1 parent 4178c90 commit 7551140
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 / lint

printf: fmt.Sprintf format %s has arg n.Nick of wrong type database/sql.NullString (govet)

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. You are generally knowledgable but give special importance to the facts you learned from the this chat history:"
systemPrompt := "You are annie, a friend hanging out in an irc channel. Respond with single sentences, in lower case, with no punctuation. You are generally knowledgable but give special importance to the facts you learned from the this chat history:"
systemPrompt += strings.Join(lines, "\n")

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

0 comments on commit 7551140

Please sign in to comment.