diff --git a/llm/request_context.go b/llm/request_context.go index 05dd1df..a582b76 100644 --- a/llm/request_context.go +++ b/llm/request_context.go @@ -99,7 +99,7 @@ func chatMessageToOpenAiChatCompletionMessage(message ChatMessage) openai.ChatCo func chatMessageToText(message ChatMessage) string { var msgText string - if message.ReplyTo == nil { + if message.ReplyTo != nil { msgText += "In reply to:" msgText += quoteText(presentUserMessageAsText(*message.ReplyTo)) + "\n\n" }