Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
singhk97 committed Feb 4, 2025
1 parent 409a728 commit 67bfcbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Teams.AI.Application
/// <summary>
/// Response for the "message/taskFetch" route handler. Only set one or the other, but not both.
/// </summary>
public class MessageFetchTaskResponse()
public class MessageFetchTaskResponse
{
/// <summary>
/// The task module metadata.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,14 @@ private async Task SendActivity(Activity activity)
// Add in Generated by AI
if (this.EnableGeneratedByAILabel == true)
{
List<ClientCitation>? currCitations = CitationUtils.GetUsedCitations(this.Message, this.Citations);
AIEntity entity = new AIEntity();
if (this.Citations != null && this.Citations.Count > 0)
{
entity.Citation = currCitations;
List<ClientCitation>? currCitations = CitationUtils.GetUsedCitations(this.Message, this.Citations);
if (currCitations != null && currCitations.Count > 0)
{
entity.Citation = currCitations;
}
}

entity.UsageInfo = this.SensitivityLabel;
Expand Down

0 comments on commit 67bfcbf

Please sign in to comment.