Request context prompt fixes and improvements.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Alexey Skobkin 2024-03-12 06:47:48 +03:00
parent 19da4c6b34
commit 71dad1bda8
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
1 changed files with 2 additions and 2 deletions

View File

@ -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 + "\". "
}