Update ConversationService.SendMessage.cs
This commit is contained in:
parent
d8c2e1dced
commit
2a5d0ac4ef
|
|
@ -52,7 +52,10 @@ public partial class ConversationService
|
||||||
message.Files?.Clear();
|
message.Files?.Clear();
|
||||||
|
|
||||||
// Save payload
|
// Save payload
|
||||||
message.Payload = string.IsNullOrEmpty(replyMessage.Payload) ? message.Content : replyMessage.Payload;
|
if (replyMessage != null)
|
||||||
|
{
|
||||||
|
message.Payload = string.IsNullOrEmpty(replyMessage.Payload) ? message.Content : replyMessage.Payload;
|
||||||
|
}
|
||||||
|
|
||||||
// Before chat completion hook
|
// Before chat completion hook
|
||||||
foreach (var hook in hooks)
|
foreach (var hook in hooks)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue