Skip to content

Commit 9b9fbcc

Browse files
committed
Address PR comments
1 parent 2696a30 commit 9b9fbcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public GPT(
9292
/// <returns></returns>
9393
internal async Task<bool> SelfCheck(IHost host, CancellationToken token)
9494
{
95-
if ((AuthType == AuthType.ApiKey && Key is not null || AuthType == AuthType.EntraID) && ModelInfo is not null)
95+
if ((AuthType is AuthType.EntraID || Key is not null) && ModelInfo is not null)
9696
{
9797
return true;
9898
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ internal void ListAllGPTs(IHost host)
125125
new PropertyElement<GPT>(nameof(GPT.Name)),
126126
new CustomElement<GPT>(label: "Active", m => m.Name == Active?.Name ? "true" : string.Empty),
127127
new PropertyElement<GPT>(nameof(GPT.Description)),
128-
]);
128+
]);
129129
}
130130

131131
internal void ShowOneGPT(IHost host, string name)

0 commit comments

Comments
 (0)