From 71dad1bda8208633df647ad2a4051bc124a697cf Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 12 Mar 2024 06:47:48 +0300 Subject: [PATCH] Request context prompt fixes and improvements. --- llm/request_context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llm/request_context.go b/llm/request_context.go index b49d175..12e72d4 100644 --- a/llm/request_context.go +++ b/llm/request_context.go @@ -28,10 +28,10 @@ func (c RequestContext) Prompt() string { prompt += "Chat description is \"" + c.Chat.Description + "\". " } + prompt += "According to their profile, first name of the user who wrote you is \"" + c.User.FirstName + "\". " if c.User.Username != "" { - prompt += "The user who wrote you has username \"@" + c.User.Username + "\". " + prompt += "Their username is @" + c.User.Username + ". " } - prompt += "Their first name is \"" + c.User.FirstName + "\". " if c.User.LastName != "" { prompt += "Their last name is \"" + c.User.LastName + "\". " } -- 2.43.5