From 21888170060918f04a9b6004c8f7f0c5130d6c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Sat, 13 Apr 2024 21:35:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webview/src/apps/llmodel/create.html | 4 ++-- webview/src/apps/llmodel/update.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webview/src/apps/llmodel/create.html b/webview/src/apps/llmodel/create.html index 8c52a99..aacba45 100644 --- a/webview/src/apps/llmodel/create.html +++ b/webview/src/apps/llmodel/create.html @@ -93,14 +93,14 @@
- {{aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}} + {{formdata.provider && aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}}
- 自定义接口地址,留空则使用官方接口:{{aiModels[formdata.provider].endpoint}} + 自定义接口地址,留空则使用官方接口:{{formdata.provider && aiModels[formdata.provider].endpoint}}
diff --git a/webview/src/apps/llmodel/update.html b/webview/src/apps/llmodel/update.html index 1ac53e4..4967244 100644 --- a/webview/src/apps/llmodel/update.html +++ b/webview/src/apps/llmodel/update.html @@ -93,14 +93,14 @@
- {{aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}} + {{formdata.provider && aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}}
- 自定义接口地址,留空则使用官方接口:{{aiModels[formdata.provider].endpoint}} + 自定义接口地址,留空则使用官方接口:{{formdata.provider && aiModels[formdata.provider].endpoint}}