handle null string
This commit is contained in:
parent
a9b804d08e
commit
eb8eb43ea3
|
|
@ -49,7 +49,7 @@ public class PlotChartFn : IFunctionCallback
|
||||||
]);
|
]);
|
||||||
|
|
||||||
var obj = response.JsonContent<LlmContextOut>();
|
var obj = response.JsonContent<LlmContextOut>();
|
||||||
message.Content = obj?.GreetingMessage ?? "Here is the chart you ask for:";
|
message.Content = obj?.GreetingMessage.IfNullOrEmptyAs("Here is the chart you ask for:");
|
||||||
message.RichContent = new RichContent<IRichMessage>
|
message.RichContent = new RichContent<IRichMessage>
|
||||||
{
|
{
|
||||||
Recipient = new Recipient { Id = convService.ConversationId },
|
Recipient = new Recipient { Id = convService.ConversationId },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue