mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 11:37:59 +00:00
Cannot delete some providers (#56)
Fixed the bug where users cannot delete a self-hosted provider when an API token was never entered
This commit is contained in:
1 parent
f3aa38e090
commit
cac2373269
3 files changed
+18
-2
No files matched your search
@@ -73,9 +73,10 @@ public sealed class SettingsManager
|
||||
/// <summary>
|
||||
/// Data structure for deleting a secret response.
|
||||
/// </summary>
|
||||
/// <param name="Success">True, when the secret was successfully deleted.</param>
|
||||
/// <param name="Success">True, when the secret was successfully deleted or not found.</param>
|
||||
/// <param name="Issue">The issue, when the secret could not be deleted.</param>
|
||||
public readonly record struct DeleteSecretResponse(bool Success, string Issue);
|
||||
/// <param name="WasEntryFound">True, when the entry was found and deleted.</param>
|
||||
public readonly record struct DeleteSecretResponse(bool Success, string Issue, bool WasEntryFound);
|
||||
|
||||
/// <summary>
|
||||
/// Tries to delete the API key for the given provider.
|
||||
|
||||
Reference in new issue
Block a user