diff --git a/app/MindWork AI Studio/Tools/Services/RustService.APIKeys.cs b/app/MindWork AI Studio/Tools/Services/RustService.APIKeys.cs
index 256d29fc..8c0ed88a 100644
--- a/app/MindWork AI Studio/Tools/Services/RustService.APIKeys.cs
+++ b/app/MindWork AI Studio/Tools/Services/RustService.APIKeys.cs
@@ -1,12 +1,9 @@
-using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.Rust;
namespace AIStudio.Tools.Services;
public sealed partial class RustService
{
- private static string TB_APIKeys(string fallbackEN) => I18N.I.T(fallbackEN, typeof(RustService).Namespace, $"{nameof(RustService)}.APIKeys");
-
///
/// Try to get the API key for the given secret ID.
///
@@ -15,8 +12,6 @@ public sealed partial class RustService
/// The requested secret.
public async Task GetAPIKey(ISecretId secretId, bool isTrying = false)
{
- static string TB(string fallbackEN) => TB_APIKeys(fallbackEN);
-
var secretRequest = new SelectSecretRequest($"provider::{secretId.SecretId}::{secretId.SecretName}::api_key", Environment.UserName, isTrying);
var result = await this.http.PostAsJsonAsync("/secrets/get", secretRequest, this.jsonRustSerializerOptions);
if (!result.IsSuccessStatusCode)
@@ -41,8 +36,6 @@ public sealed partial class RustService
/// The store secret response.
public async Task SetAPIKey(ISecretId secretId, string key)
{
- static string TB(string fallbackEN) => TB_APIKeys(fallbackEN);
-
var encryptedKey = await this.encryptor!.Encrypt(key);
var request = new StoreSecretRequest($"provider::{secretId.SecretId}::{secretId.SecretName}::api_key", Environment.UserName, encryptedKey);
var result = await this.http.PostAsJsonAsync("/secrets/store", request, this.jsonRustSerializerOptions);
@@ -66,8 +59,6 @@ public sealed partial class RustService
/// The delete secret response.
public async Task DeleteAPIKey(ISecretId secretId)
{
- static string TB(string fallbackEN) => TB_APIKeys(fallbackEN);
-
var request = new SelectSecretRequest($"provider::{secretId.SecretId}::{secretId.SecretName}::api_key", Environment.UserName, false);
var result = await this.http.PostAsJsonAsync("/secrets/delete", request, this.jsonRustSerializerOptions);
if (!result.IsSuccessStatusCode)
diff --git a/app/MindWork AI Studio/Tools/Services/RustService.Clipboard.cs b/app/MindWork AI Studio/Tools/Services/RustService.Clipboard.cs
index 2e447867..baf730bb 100644
--- a/app/MindWork AI Studio/Tools/Services/RustService.Clipboard.cs
+++ b/app/MindWork AI Studio/Tools/Services/RustService.Clipboard.cs
@@ -1,4 +1,3 @@
-using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.Rust;
namespace AIStudio.Tools.Services;
diff --git a/app/MindWork AI Studio/Tools/Services/RustService.Secrets.cs b/app/MindWork AI Studio/Tools/Services/RustService.Secrets.cs
index da9db35f..49f51a1d 100644
--- a/app/MindWork AI Studio/Tools/Services/RustService.Secrets.cs
+++ b/app/MindWork AI Studio/Tools/Services/RustService.Secrets.cs
@@ -1,12 +1,9 @@
-using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.Rust;
namespace AIStudio.Tools.Services;
public sealed partial class RustService
{
- private static string TB_Secrets(string fallbackEN) => I18N.I.T(fallbackEN, typeof(RustService).Namespace, $"{nameof(RustService)}.Secrets");
-
///
/// Try to get the secret data for the given secret ID.
///
@@ -15,8 +12,6 @@ public sealed partial class RustService
/// The requested secret.
public async Task GetSecret(ISecretId secretId, bool isTrying = false)
{
- static string TB(string fallbackEN) => TB_Secrets(fallbackEN);
-
var secretRequest = new SelectSecretRequest($"secret::{secretId.SecretId}::{secretId.SecretName}", Environment.UserName, isTrying);
var result = await this.http.PostAsJsonAsync("/secrets/get", secretRequest, this.jsonRustSerializerOptions);
if (!result.IsSuccessStatusCode)
@@ -41,8 +36,6 @@ public sealed partial class RustService
/// The store secret response.
public async Task SetSecret(ISecretId secretId, string secretData)
{
- static string TB(string fallbackEN) => TB_Secrets(fallbackEN);
-
var encryptedSecret = await this.encryptor!.Encrypt(secretData);
var request = new StoreSecretRequest($"secret::{secretId.SecretId}::{secretId.SecretName}", Environment.UserName, encryptedSecret);
var result = await this.http.PostAsJsonAsync("/secrets/store", request, this.jsonRustSerializerOptions);
@@ -66,8 +59,6 @@ public sealed partial class RustService
/// The delete secret response.
public async Task DeleteSecret(ISecretId secretId)
{
- static string TB(string fallbackEN) => TB_Secrets(fallbackEN);
-
var request = new SelectSecretRequest($"secret::{secretId.SecretId}::{secretId.SecretName}", Environment.UserName, false);
var result = await this.http.PostAsJsonAsync("/secrets/delete", request, this.jsonRustSerializerOptions);
if (!result.IsSuccessStatusCode)