Save payload only when it's not empty.
This commit is contained in:
parent
41da7d6627
commit
5699842b49
|
|
@ -52,9 +52,9 @@ public partial class ConversationService
|
|||
message.Files?.Clear();
|
||||
|
||||
// Save payload
|
||||
if (replyMessage != null)
|
||||
if (replyMessage != null && !string.IsNullOrEmpty(replyMessage.Payload))
|
||||
{
|
||||
message.Payload = string.IsNullOrEmpty(replyMessage.Payload) ? message.Content : replyMessage.Payload;
|
||||
message.Payload = replyMessage.Payload;
|
||||
}
|
||||
|
||||
// Before chat completion hook
|
||||
|
|
|
|||
Loading…
Reference in a new issue