From 83c70787215dfe754dcab5c14849bced45236aff Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 22 Sep 2026 21:22:05 +0200 Subject: [PATCH] Merge the duplicated doc block above the provider error reader --- app/MindWork AI Studio/Provider/BaseProvider.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/MindWork AI Studio/Provider/BaseProvider.cs b/app/MindWork AI Studio/Provider/BaseProvider.cs index f0e8a64d..94693221 100644 --- a/app/MindWork AI Studio/Provider/BaseProvider.cs +++ b/app/MindWork AI Studio/Provider/BaseProvider.cs @@ -596,17 +596,12 @@ public abstract class BaseProvider : IProvider, ISecretId /// /// Providers word their errors differently, but they all put a sentence somewhere into the /// body. Passing that sentence on is what lets a user act on the problem instead of only - /// learning that something went wrong. + /// learning that something went wrong. Open to the providers themselves as well, because some + /// of them talk to an endpoint of their own rather than through the shared request methods, + /// and their users deserve the same explanation. /// /// The body of the failed response. /// The message, or an empty string when the body carries none. - /// - /// Reads what the provider itself said about a failure out of its error response. - /// - /// - /// Available to the providers because some of them talk to an endpoint of their own rather - /// than through the shared request methods, and their users deserve the same explanation. - /// protected static string ReadProviderErrorMessage(string responseBody) { if (string.IsNullOrWhiteSpace(responseBody))