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/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(), 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