From d5ec842b796251ecfb544cf7f835ac2114f5d880 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Thu, 17 Oct 2024 12:08:27 -0700 Subject: [PATCH] Use more concise spinner for 'Azure' agent - the status update message from Azure Copilot could be long --- shell/AIShell.Integration/AIShell.Integration.csproj | 4 ++-- shell/agents/Microsoft.Azure.Agent/AzureAgent.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/AIShell.Integration/AIShell.Integration.csproj b/shell/AIShell.Integration/AIShell.Integration.csproj index af4b7d65..e036f83a 100644 --- a/shell/AIShell.Integration/AIShell.Integration.csproj +++ b/shell/AIShell.Integration/AIShell.Integration.csproj @@ -22,8 +22,8 @@ - PreserveNewest - PreserveNewest + Always + Always diff --git a/shell/agents/Microsoft.Azure.Agent/AzureAgent.cs b/shell/agents/Microsoft.Azure.Agent/AzureAgent.cs index 043670d5..c0fd3a88 100644 --- a/shell/agents/Microsoft.Azure.Agent/AzureAgent.cs +++ b/shell/agents/Microsoft.Azure.Agent/AzureAgent.cs @@ -101,6 +101,7 @@ public async Task ChatAsync(string input, IShell shell) string query = $"{input}\n\n---\n\n{_instructions}"; CopilotResponse copilotResponse = await host.RunWithSpinnerAsync( status: "Thinking ...", + spinnerKind: SpinnerKind.Processing, func: async context => await _chatSession.GetChatResponseAsync(query, context, token) ).ConfigureAwait(false);