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 92c14449e..1009995c5 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 1759f78bf..b7467f4d8 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)}>