From 0b2808f990d120213245abf2a743e9fca573e0a7 Mon Sep 17 00:00:00 2001 From: Jin Hai <haijin.chn@gmail.com> Date: Thu, 11 Apr 2024 08:17:15 +0800 Subject: [PATCH] Update default language to English (#309) ### What problem does this PR solve? Update default language to English ### Type of change - [x] Refactoring Signed-off-by: Jin Hai <haijin.chn@gmail.com> --- api/db/db_models.py | 4 ++-- .../pages/chat/chat-configuration-modal/assistant-setting.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/db/db_models.py b/api/db/db_models.py index 845af9d..b66badf 100644 --- a/api/db/db_models.py +++ b/api/db/db_models.py @@ -386,7 +386,7 @@ class User(DataBaseModel, UserMixin): max_length=32, null=True, help_text="English|Chinese", - default="Chinese") + default="English") color_schema = CharField( max_length=32, null=True, @@ -695,7 +695,7 @@ class Dialog(DataBaseModel): language = CharField( max_length=32, null=True, - default="Chinese", + default="English", help_text="English|Chinese") llm_id = CharField(max_length=32, null=False, help_text="default llm ID") llm_setting = JSONField(null=False, default={"temperature": 0.1, "top_p": 0.3, "frequency_penalty": 0.7, diff --git a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx index d41af26..0f4ba92 100644 --- a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx +++ b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx @@ -57,7 +57,7 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => { <Form.Item name={'language'} label={t('language')} - initialValue={'Chinese'} + initialValue={'English'} tooltip="coming soon" style={{ display: 'none' }} > -- GitLab