From 9a64aa76c1b4905a13dc0c063ce748a04097d3e4 Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Mon, 17 Jun 2024 09:15:43 +0800 Subject: [PATCH] fix: typo and check (#5287) --- api/core/model_runtime/model_providers/localai/llm/llm.py | 2 +- .../components/header/account-setting/account-page/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/core/model_runtime/model_providers/localai/llm/llm.py b/api/core/model_runtime/model_providers/localai/llm/llm.py index 92c14449e4..1009995c58 100644 --- a/api/core/model_runtime/model_providers/localai/llm/llm.py +++ b/api/core/model_runtime/model_providers/localai/llm/llm.py @@ -73,7 +73,7 @@ class LocalAILanguageModel(LargeLanguageModel): def tokens(text: str): """ - We cloud not determine which tokenizer to use, cause the model is customized. + We could not determine which tokenizer to use, cause the model is customized. So we use gpt2 tokenizer to calculate the num tokens for convenience. """ return self._get_num_tokens_by_gpt2(text) diff --git a/web/app/components/header/account-setting/account-page/index.tsx b/web/app/components/header/account-setting/account-page/index.tsx index 1759f78bf8..b7467f4d88 100644 --- a/web/app/components/header/account-setting/account-page/index.tsx +++ b/web/app/components/header/account-setting/account-page/index.tsx @@ -163,7 +163,7 @@ export default function AccountPage() { wrapperClassName='mt-2' /> )} - + {!IS_CE_EDITION && } {editNameModalVisible && ( {}} + onClose={() => { }} >
setShowDeleteAccountModal(false)}>