File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
shell/agents/AIShell.OpenAI.Agent Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments