diff --git a/llm/llm.go b/llm/llm.go index 0cb68a8..def83fe 100644 --- a/llm/llm.go +++ b/llm/llm.go @@ -36,7 +36,7 @@ func (l *LlmConnector) HandleChatMessage(userMessage ChatMessage, model string, historyLength := len(requestContext.Chat.History) if historyLength > 0 { - systemPrompt += "\nYou have access to last " + strconv.Itoa(historyLength) + "messages in this chat." + systemPrompt += "\nYou have access to last " + strconv.Itoa(historyLength) + " messages in this chat." } req := openai.ChatCompletionRequest{ diff --git a/llm/request_context.go b/llm/request_context.go index a582b76..da07fbc 100644 --- a/llm/request_context.go +++ b/llm/request_context.go @@ -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"