diff --git a/app/MindWork AI Studio/Assistants/DocumentAnalysis/DocumentAnalysisAssistant.razor.cs b/app/MindWork AI Studio/Assistants/DocumentAnalysis/DocumentAnalysisAssistant.razor.cs index 3887e7ee..b0ca9573 100644 --- a/app/MindWork AI Studio/Assistants/DocumentAnalysis/DocumentAnalysisAssistant.razor.cs +++ b/app/MindWork AI Studio/Assistants/DocumentAnalysis/DocumentAnalysisAssistant.razor.cs @@ -217,7 +217,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore= minimumLevel) + if (!preferPolicyPreselection) { - this.currentProfile = this.ResolveProfileSelection(); - return; + // Keep the current provider if it still satisfies the minimum confidence: + if (this.providerSettings != Settings.Provider.NONE && + this.providerSettings.UsedLLMProvider.GetConfidence(this.SettingsManager).Level >= minimumLevel) + { + this.currentProfile = this.ResolveProfileSelection(); + return; + } } // Try to apply the policy preselection: