From 24f56df8c3fd1a610a1fe7d812f982d0275343de Mon Sep 17 00:00:00 2001 From: fadeaway <1281836100@qq.com> Date: Mon, 12 May 2025 21:38:47 +0800 Subject: [PATCH 1/3] fix(web): able to enter Chinese characters in the view-form-dropdown (#19555) Co-authored-by: fadeaway --- .../base/chat/chat-with-history/inputs-form/content.tsx | 4 ++-- .../base/chat/embedded-chatbot/inputs-form/content.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/components/base/chat/chat-with-history/inputs-form/content.tsx b/web/app/components/base/chat/chat-with-history/inputs-form/content.tsx index d33dac492d..b8d18244e1 100644 --- a/web/app/components/base/chat/chat-with-history/inputs-form/content.tsx +++ b/web/app/components/base/chat/chat-with-history/inputs-form/content.tsx @@ -1,4 +1,4 @@ -import React, { useCallback } from 'react' +import React, { memo, useCallback } from 'react' import { useTranslation } from 'react-i18next' import { useChatWithHistoryContext } from '../context' import Input from '@/app/components/base/input' @@ -112,4 +112,4 @@ const InputsFormContent = ({ showTip }: Props) => { ) } -export default InputsFormContent +export default memo(InputsFormContent) diff --git a/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx b/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx index 1a9a84ed92..e56520d23f 100644 --- a/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx +++ b/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx @@ -1,4 +1,4 @@ -import React, { useCallback } from 'react' +import React, { memo, useCallback } from 'react' import { useTranslation } from 'react-i18next' import { useEmbeddedChatbotContext } from '../context' import Input from '@/app/components/base/input' @@ -112,4 +112,4 @@ const InputsFormContent = ({ showTip }: Props) => { ) } -export default InputsFormContent +export default memo(InputsFormContent) From f3522a282c847376457c7824f0a3f22e271ecbef Mon Sep 17 00:00:00 2001 From: Abdullah AlOsaimi <189027247+osaimi@users.noreply.github.com> Date: Mon, 12 May 2025 16:39:41 +0300 Subject: [PATCH 2/3] correct key to 'embedding_model_provider' in docs (#19541) --- web/app/(commonLayout)/datasets/template/template.en.mdx | 4 ++-- web/app/(commonLayout)/datasets/template/template.ja.mdx | 2 +- web/app/(commonLayout)/datasets/template/template.zh.mdx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/(commonLayout)/datasets/template/template.en.mdx b/web/app/(commonLayout)/datasets/template/template.en.mdx index b8e29334f2..7f2861001d 100644 --- a/web/app/(commonLayout)/datasets/template/template.en.mdx +++ b/web/app/(commonLayout)/datasets/template/template.en.mdx @@ -314,7 +314,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi Index technique (optional) - If this is not set, embedding_model, embedding_provider_name and retrieval_model will be set to null + If this is not set, embedding_model, embedding_model_provider and retrieval_model will be set to null - high_quality High quality - economy Economy @@ -338,7 +338,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi Embedding model name (optional) - + Embedding model provider name (optional) diff --git a/web/app/(commonLayout)/datasets/template/template.ja.mdx b/web/app/(commonLayout)/datasets/template/template.ja.mdx index b7b9a4a62e..defd48816d 100644 --- a/web/app/(commonLayout)/datasets/template/template.ja.mdx +++ b/web/app/(commonLayout)/datasets/template/template.ja.mdx @@ -337,7 +337,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi 埋め込みモデル名(任意) - + 埋め込みモデルのプロバイダ名(任意) diff --git a/web/app/(commonLayout)/datasets/template/template.zh.mdx b/web/app/(commonLayout)/datasets/template/template.zh.mdx index 4ce80dd5c7..e3c716ee46 100644 --- a/web/app/(commonLayout)/datasets/template/template.zh.mdx +++ b/web/app/(commonLayout)/datasets/template/template.zh.mdx @@ -341,7 +341,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi Embedding 模型名称 - + Embedding 模型供应商 From 31d143de11b0a0892f56e88ff0124599e0d04e28 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Mon, 12 May 2025 21:42:07 +0800 Subject: [PATCH 3/3] chore: disable redis client-side caching by default (#19524) --- api/configs/middleware/cache/redis_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/configs/middleware/cache/redis_config.py b/api/configs/middleware/cache/redis_config.py index 9320c5ab2e..916f52e165 100644 --- a/api/configs/middleware/cache/redis_config.py +++ b/api/configs/middleware/cache/redis_config.py @@ -91,5 +91,5 @@ class RedisConfig(BaseSettings): REDIS_ENABLE_CLIENT_SIDE_CACHE: bool = Field( description="Enable client side cache in redis", - default=True, + default=False, )