Skip to content

Commit

Permalink
Fix citations encoding format
Browse files Browse the repository at this point in the history
  • Loading branch information
Corina Gum committed Dec 12, 2024
1 parent 9292bb8 commit de922ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ public class ClientCitationAppearance
public string Abstract { get; set; } = string.Empty;

/// <summary>
/// The encoding format used for the icon.
/// Optional. Encoding format of the `citation.appearance.text` field.
/// </summary>
[JsonProperty(PropertyName = "encodingFormat")]
public string EncodingFormat { get; set; } = "text/html";
public string? EncodingFormat { get; set; }

/// <summary>
/// The icon provided in the citation ui.
Expand Down
2 changes: 1 addition & 1 deletion js/packages/teams-ai/src/types/ClientCitation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface ClientCitation {
abstract: string;

/**
* Encoding format of the ` citation.appearance.text` field.
* Encoding format of the `citation.appearance.text` field.
*/
encodingFormat?: 'application/vnd.microsoft.card.adaptive';

Expand Down
4 changes: 2 additions & 2 deletions python/packages/ai/teams/ai/citations/citations.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class Appearance(Model):
text (str): Optional; ignored in Teams
url (str): The url of the document
abstract (str): Content of the citation. Must be clipped if longer than 480 characters
encodingFormat (str): The encoding format of the citation
image (str): Used for icon; for not it is ignored
encodingFormat (str): Encoding format of the `citation.appearance.text` field.
image (str): Used for icon; for now it is ignored
keywords (list[str]): The optional keywords to the citation
usageInfo (SensitivityUsageInfo): The optional sensitivity content information
"""
Expand Down

0 comments on commit de922ac

Please sign in to comment.