Fixing user request representation in the LLM request context (#40) #41

Merged
skobkin merged 2 commits from fix_quoted_messages_usernames_context into main 2024-11-03 23:25:11 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit b4b0f7baba - Show all commits

View file

@ -56,7 +56,7 @@ func (c RequestContext) Prompt() string {
prompt += "Chat description is \"" + c.Chat.Description + "\". "
}
prompt += "\nProfile of the user who mentioned you in the chat:" +
prompt += "\nProfile of the user who mentioned you in the chat:\n" +
"First name: \"" + c.User.FirstName + "\"\n"
if c.User.Username != "" {
prompt += "Username: @" + c.User.Username + ".\n"