diff --git a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Action/AIEntity.cs b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Action/AIEntity.cs
index 79ebe7139..12f7c597d 100644
--- a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Action/AIEntity.cs
+++ b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Action/AIEntity.cs
@@ -94,7 +94,7 @@ public class ClientCitationAppearance
public string Name { get; set; } = string.Empty;
///
- /// Optional. The citation appreance text. It is ignored in Teams.
+ /// Optional. The citation appearance text.
///
[JsonProperty(PropertyName = "text")]
public string? Text { get; set; }
@@ -112,10 +112,10 @@ public class ClientCitationAppearance
public string Abstract { get; set; } = string.Empty;
///
- /// The encoding format used for the icon.
+ /// Optional. Encoding format of the `citation.appearance.text` field.
///
[JsonProperty(PropertyName = "encodingFormat")]
- public string EncodingFormat { get; set; } = "text/html";
+ public string? EncodingFormat { get; set; }
///
/// The icon provided in the citation ui.
diff --git a/js/packages/teams-ai/src/planners/AssistantsPlanner.spec.ts b/js/packages/teams-ai/src/planners/AssistantsPlanner.spec.ts
index 40a116844..10b47ed1a 100644
--- a/js/packages/teams-ai/src/planners/AssistantsPlanner.spec.ts
+++ b/js/packages/teams-ai/src/planners/AssistantsPlanner.spec.ts
@@ -53,7 +53,8 @@ describe('AssistantsPlanner', () => {
const options: AssistantsPlannerOptions = {
apiKey: 'test-key',
- assistant_id: 'test-assistant-id'
+ assistant_id: 'test-assistant-id',
+ api_version: '2024-02-15'
};
planner = new AssistantsPlanner(options);
diff --git a/js/packages/teams-ai/src/planners/AssistantsPlanner.ts b/js/packages/teams-ai/src/planners/AssistantsPlanner.ts
index b6e4e5dd5..4ca211e87 100644
--- a/js/packages/teams-ai/src/planners/AssistantsPlanner.ts
+++ b/js/packages/teams-ai/src/planners/AssistantsPlanner.ts
@@ -68,6 +68,11 @@ export interface AssistantsPlannerOptions {
* Defaults to 'conversation.assistants_state'.
*/
assistants_state_variable?: string;
+
+ /**
+ * Optional. Version of the API being called. Default is '2024-02-15-preview'.
+ */
+ api_version?: string;
}
/**
@@ -92,6 +97,7 @@ export class AssistantsPlanner implements
this._options = {
polling_interval: DEFAULT_POLLING_INTERVAL,
assistants_state_variable: DEFAULT_ASSISTANTS_STATE_VARIABLE,
+ api_version: '2024-02-15-preview',
...options
};
diff --git a/js/packages/teams-ai/src/types/ClientCitation.ts b/js/packages/teams-ai/src/types/ClientCitation.ts
index cc42f1079..00df974cd 100644
--- a/js/packages/teams-ai/src/types/ClientCitation.ts
+++ b/js/packages/teams-ai/src/types/ClientCitation.ts
@@ -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';
diff --git a/js/samples/04.ai-apps/d.assistants-mathBot/src/bot.ts b/js/samples/04.ai-apps/d.assistants-mathBot/src/bot.ts
index b5c3907ba..71bd1bf42 100644
--- a/js/samples/04.ai-apps/d.assistants-mathBot/src/bot.ts
+++ b/js/samples/04.ai-apps/d.assistants-mathBot/src/bot.ts
@@ -40,7 +40,8 @@ if (!process.env.ASSISTANT_ID) {
const planner = new AssistantsPlanner({
apiKey: apiKey,
endpoint: endpoint,
- assistant_id: process.env.ASSISTANT_ID!
+ assistant_id: process.env.ASSISTANT_ID!,
+ api_version: '2024-02-15-preview'
});
// Define storage and application
diff --git a/js/samples/04.ai-apps/e.assistants-orderBot/src/bot.ts b/js/samples/04.ai-apps/e.assistants-orderBot/src/bot.ts
index 1121751e2..0e818c22d 100644
--- a/js/samples/04.ai-apps/e.assistants-orderBot/src/bot.ts
+++ b/js/samples/04.ai-apps/e.assistants-orderBot/src/bot.ts
@@ -61,7 +61,8 @@ if (!process.env.ASSISTANT_ID) {
const planner = new AssistantsPlanner({
apiKey: apiKey,
endpoint: endpoint,
- assistant_id: process.env.ASSISTANT_ID ?? assistantId
+ assistant_id: process.env.ASSISTANT_ID ?? assistantId,
+ api_version: '2024-02-15-preview'
});
// Define storage and application
diff --git a/python/packages/ai/teams/ai/citations/citations.py b/python/packages/ai/teams/ai/citations/citations.py
index 100a62fd5..97cd57c50 100644
--- a/python/packages/ai/teams/ai/citations/citations.py
+++ b/python/packages/ai/teams/ai/citations/citations.py
@@ -64,11 +64,11 @@ class Appearance(Model):
Attributes:
@type (str): Required; must be 'DigitalDocument'
name (str): The name of the document
- text (str): Optional; ignored in Teams
+ text (str): Optional; the appearance text of the citation.
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
"""