From f19cf8553789b3e2a86dc6abe600b0de989fe166 Mon Sep 17 00:00:00 2001 From: liwenrui Date: Tue, 6 Jun 2023 14:18:07 +0800 Subject: [PATCH] * hide parts of api key and proxy addr in ai models page. --- module/ai/view/models.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/ai/view/models.html.php b/module/ai/view/models.html.php index 596ec43b42..b57b3cec8c 100644 --- a/module/ai/view/models.html.php +++ b/module/ai/view/models.html.php @@ -18,7 +18,7 @@ ai->models->apiKey;?> - key;?> + key) ? $lang->ai->models->unconfigured : ('' . substr_replace($modelConfig->key, '...', 4, strlen($modelConfig->key) - 8) . '');?> ai->models->proxyType;?> @@ -26,7 +26,7 @@ proxyType)) echo 'style="display: none;"'; ?>> ai->models->proxyAddr;?> - proxyAddr;?> + proxyAddr) ? $lang->ai->models->unconfigured : ('' . substr_replace($modelConfig->proxyAddr, '://...', strpos($modelConfig->proxyAddr, ':')) . '');?> ai->models->description;?>