Skip to content

Commit 4d688ba

Browse files
authored
Merge the 1.0.0-preview.3 release branch back to main
2 parents 37d0e40 + db772a0 commit 4d688ba

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

shell/AIShell.Integration/AIShell.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@{
22
RootModule = 'AIShell.psm1'
33
NestedModules = @("AIShell.Integration.dll")
4-
ModuleVersion = '1.0.2'
4+
ModuleVersion = '1.0.3'
55
GUID = 'ECB8BEE0-59B9-4DAE-9D7B-A990B480279A'
66
Author = 'Microsoft Corporation'
77
CompanyName = 'Microsoft Corporation'
@@ -13,5 +13,5 @@
1313
VariablesToExport = '*'
1414
AliasesToExport = @('aish', 'askai', 'fixit')
1515
HelpInfoURI = 'https://aka.ms/aishell-help'
16-
PrivateData = @{ PSData = @{ Prerelease = 'preview2'; ProjectUri = 'https://github.com/PowerShell/AIShell' } }
16+
PrivateData = @{ PSData = @{ Prerelease = 'preview3'; ProjectUri = 'https://github.com/PowerShell/AIShell' } }
1717
}

shell/agents/AIShell.OpenAI.Agent/GPT.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class GPT
3535
public string SystemPrompt { set; get; }
3636

3737
[JsonConverter(typeof(JsonStringEnumConverter<AuthType>))]
38-
public AuthType AuthType { set; get; } = AuthType.ApiKey;
38+
public AuthType AuthType { set; get; }
3939

4040
public GPT(
4141
string name,
@@ -80,7 +80,7 @@ public GPT(
8080
}
8181

8282
// EntraID authentication is only supported for Azure OpenAI
83-
if (AuthType == AuthType.EntraID && Type != EndpointType.AzureOpenAI)
83+
if (AuthType is AuthType.EntraID && Type is not EndpointType.AzureOpenAI)
8484
{
8585
throw new InvalidOperationException("EntraID authentication is only supported for Azure OpenAI service.");
8686
}
@@ -165,22 +165,22 @@ private void ShowEndpointInfo(IHost host)
165165
new(label: " Endpoint", m => m.Endpoint),
166166
new(label: " Deployment", m => m.Deployment),
167167
new(label: " Model", m => m.ModelName),
168-
new(label: " Auth Type", m => m.AuthType.ToString()),
168+
new(label: " AuthType", m => m.AuthType.ToString()),
169169
},
170170

171171
EndpointType.OpenAI =>
172172
[
173173
new(label: " Type", m => m.Type.ToString()),
174174
new(label: " Model", m => m.ModelName),
175-
new(label: " Auth Type", m => m.AuthType.ToString()),
175+
new(label: " AuthType", m => m.AuthType.ToString()),
176176
],
177177

178178
EndpointType.CompatibleThirdParty =>
179179
[
180180
new(label: " Type", m => m.Type.ToString()),
181181
new(label: " Endpoint", m => m.Endpoint),
182182
new(label: " Model", m => m.ModelName),
183-
new(label: " Auth Type", m => m.AuthType.ToString()),
183+
new(label: " AuthType", m => m.AuthType.ToString()),
184184
],
185185

186186
_ => throw new UnreachableException(),

shell/shell.common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<TargetFramework>net8.0</TargetFramework>
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<LangVersion>12.0</LangVersion>
11-
<Version>1.0.0-preview.2</Version>
11+
<Version>1.0.0-preview.3</Version>
1212

1313
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1414
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

0 commit comments

Comments
 (0)