From 4583ba8e3c0cda43a037f580050a1a3ba606627b Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 11 Mar 2025 17:13:45 -0700 Subject: [PATCH 1/3] Minor style changes to `GPT.cs` --- shell/agents/AIShell.OpenAI.Agent/GPT.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/agents/AIShell.OpenAI.Agent/GPT.cs b/shell/agents/AIShell.OpenAI.Agent/GPT.cs index 1be279ac..d5db24b3 100644 --- a/shell/agents/AIShell.OpenAI.Agent/GPT.cs +++ b/shell/agents/AIShell.OpenAI.Agent/GPT.cs @@ -35,7 +35,7 @@ public class GPT public string SystemPrompt { set; get; } [JsonConverter(typeof(JsonStringEnumConverter))] - public AuthType AuthType { set; get; } = AuthType.ApiKey; + public AuthType AuthType { set; get; } public GPT( string name, @@ -80,7 +80,7 @@ public GPT( } // EntraID authentication is only supported for Azure OpenAI - if (AuthType == AuthType.EntraID && Type != EndpointType.AzureOpenAI) + if (AuthType is AuthType.EntraID && Type is not EndpointType.AzureOpenAI) { throw new InvalidOperationException("EntraID authentication is only supported for Azure OpenAI service."); } @@ -165,14 +165,14 @@ private void ShowEndpointInfo(IHost host) new(label: " Endpoint", m => m.Endpoint), new(label: " Deployment", m => m.Deployment), new(label: " Model", m => m.ModelName), - new(label: " Auth Type", m => m.AuthType.ToString()), + new(label: " AuthType", m => m.AuthType.ToString()), }, EndpointType.OpenAI => [ new(label: " Type", m => m.Type.ToString()), new(label: " Model", m => m.ModelName), - new(label: " Auth Type", m => m.AuthType.ToString()), + new(label: " AuthType", m => m.AuthType.ToString()), ], EndpointType.CompatibleThirdParty => @@ -180,7 +180,7 @@ private void ShowEndpointInfo(IHost host) new(label: " Type", m => m.Type.ToString()), new(label: " Endpoint", m => m.Endpoint), new(label: " Model", m => m.ModelName), - new(label: " Auth Type", m => m.AuthType.ToString()), + new(label: " AuthType", m => m.AuthType.ToString()), ], _ => throw new UnreachableException(), From ad5296b4e38dd40d33d9f26601a875fc560aafd5 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 11 Mar 2025 17:14:44 -0700 Subject: [PATCH 2/3] Update version info for 1.0.0-preview.3 release --- shell/AIShell.Integration/AIShell.psd1 | 4 ++-- shell/shell.common.props | 2 +- tools/metadata.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/AIShell.Integration/AIShell.psd1 b/shell/AIShell.Integration/AIShell.psd1 index d9dd85e0..d1419cde 100644 --- a/shell/AIShell.Integration/AIShell.psd1 +++ b/shell/AIShell.Integration/AIShell.psd1 @@ -1,7 +1,7 @@ @{ RootModule = 'AIShell.psm1' NestedModules = @("AIShell.Integration.dll") - ModuleVersion = '1.0.2' + ModuleVersion = '1.0.3' GUID = 'ECB8BEE0-59B9-4DAE-9D7B-A990B480279A' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' @@ -13,5 +13,5 @@ VariablesToExport = '*' AliasesToExport = @('aish', 'askai', 'fixit') HelpInfoURI = 'https://aka.ms/aishell-help' - PrivateData = @{ PSData = @{ Prerelease = 'preview2'; ProjectUri = 'https://github.com/PowerShell/AIShell' } } + PrivateData = @{ PSData = @{ Prerelease = 'preview3'; ProjectUri = 'https://github.com/PowerShell/AIShell' } } } diff --git a/shell/shell.common.props b/shell/shell.common.props index 4e26a76e..cabab2c5 100644 --- a/shell/shell.common.props +++ b/shell/shell.common.props @@ -8,7 +8,7 @@ net8.0 enable 12.0 - 1.0.0-preview.2 + 1.0.0-preview.3 true true diff --git a/tools/metadata.json b/tools/metadata.json index 14857f91..54f4334f 100644 --- a/tools/metadata.json +++ b/tools/metadata.json @@ -1,3 +1,3 @@ { - "AgentsToInclude": "*" + "AgentsToInclude": ["msaz", "openai-gpt"] } From db772a07d9e5d884e692e9cfa69dcbce37cdebd2 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Wed, 12 Mar 2025 12:54:34 -0700 Subject: [PATCH 3/3] Include all agents in build by default --- tools/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/metadata.json b/tools/metadata.json index 54f4334f..14857f91 100644 --- a/tools/metadata.json +++ b/tools/metadata.json @@ -1,3 +1,3 @@ { - "AgentsToInclude": ["msaz", "openai-gpt"] + "AgentsToInclude": "*" }