diff --git a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs index 631b9e167..5d44f9675 100644 --- a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs +++ b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs @@ -348,10 +348,11 @@ private async Task SendActivity(Activity activity) // Add in Generated by AI if (this.EnableGeneratedByAILabel == true) { + List? currCitations = CitationUtils.GetUsedCitations(this.Message, this.Citations); AIEntity entity = new AIEntity(); if (this.Citations != null && this.Citations.Count > 0) { - entity.Citation = this.Citations; + entity.Citation = currCitations; } entity.UsageInfo = this.SensitivityLabel;