Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:embedding-data-type' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo authored and Beta Bot committed Nov 27, 2024
1 parent fad73d9 commit 6e03ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/dotnetcore/Providers/AI/Model/GXAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected string CallAgent(string assistant, GXProperties gxproperties, IList ch
return string.Empty;
}

if (chatCompletion != null && chatCompletion.Content.Count > 0)
if (chatCompletion != null && chatCompletion.Content!=null && chatCompletion.Content.Count > 0)
{
GXLogging.Debug(log, "Agent response:", chatCompletion.Content[0].Text);
return chatCompletion.Content[0].Text;
Expand Down

0 comments on commit 6e03ae7

Please sign in to comment.