Skip to content

Commit

Permalink
Tune annie prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Oct 28, 2024
1 parent 0e8203c commit 4178c90
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 have 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. 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 4178c90

Please sign in to comment.