nil pointer dereference fix (#37)
This commit is contained in:
parent
541c1d3bbf
commit
c3ee85bf35
|
@ -99,7 +99,7 @@ func chatMessageToOpenAiChatCompletionMessage(message ChatMessage) openai.ChatCo
|
||||||
func chatMessageToText(message ChatMessage) string {
|
func chatMessageToText(message ChatMessage) string {
|
||||||
var msgText string
|
var msgText string
|
||||||
|
|
||||||
if message.ReplyTo == nil {
|
if message.ReplyTo != nil {
|
||||||
msgText += "In reply to:"
|
msgText += "In reply to:"
|
||||||
msgText += quoteText(presentUserMessageAsText(*message.ReplyTo)) + "\n\n"
|
msgText += quoteText(presentUserMessageAsText(*message.ReplyTo)) + "\n\n"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue