mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 03:35:51 +08:00
fix: typo and check (#5287)
This commit is contained in:
parent
42029791e4
commit
9a64aa76c1
@ -73,7 +73,7 @@ class LocalAILanguageModel(LargeLanguageModel):
|
|||||||
|
|
||||||
def tokens(text: str):
|
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.
|
So we use gpt2 tokenizer to calculate the num tokens for convenience.
|
||||||
"""
|
"""
|
||||||
return self._get_num_tokens_by_gpt2(text)
|
return self._get_num_tokens_by_gpt2(text)
|
||||||
|
@ -163,7 +163,7 @@ export default function AccountPage() {
|
|||||||
wrapperClassName='mt-2'
|
wrapperClassName='mt-2'
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Button className='mt-2 font-medium text-[#D92D20] !px-3 !py-[7px] !text-[13px]' onClick={() => setShowDeleteAccountModal(true)}>{t('common.account.delete')}</Button>
|
{!IS_CE_EDITION && <Button className='mt-2 font-medium text-[#D92D20] !px-3 !py-[7px] !text-[13px]' onClick={() => setShowDeleteAccountModal(true)}>{t('common.account.delete')}</Button>}
|
||||||
</div>
|
</div>
|
||||||
{editNameModalVisible && (
|
{editNameModalVisible && (
|
||||||
<Modal
|
<Modal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user