diff --git a/api/core/model_runtime/model_providers/spark/llm/_client.py b/api/core/model_runtime/model_providers/spark/llm/_client.py
index a4659454ee..4c8790141d 100644
--- a/api/core/model_runtime/model_providers/spark/llm/_client.py
+++ b/api/core/model_runtime/model_providers/spark/llm/_client.py
@@ -148,7 +148,8 @@ class SparkLLMClient:
data = {
"header": {
"app_id": self.app_id,
- "uid": user_id
+ # resolve this error message => $.header.uid' length must be less or equal than 32
+ "uid": user_id[:32] if user_id else None
},
"parameter": {
"chat": {
diff --git a/web/app/(commonLayout)/datasets/DatasetCard.tsx b/web/app/(commonLayout)/datasets/DatasetCard.tsx
index 8e4f29af9d..ffcf9a6c0c 100644
--- a/web/app/(commonLayout)/datasets/DatasetCard.tsx
+++ b/web/app/(commonLayout)/datasets/DatasetCard.tsx
@@ -46,7 +46,7 @@ const DatasetCard = ({
return (
<>
-
+
diff --git a/web/app/components/app/annotation/edit-annotation-modal/index.tsx b/web/app/components/app/annotation/edit-annotation-modal/index.tsx
index 5edf07240d..91d856ad8e 100644
--- a/web/app/components/app/annotation/edit-annotation-modal/index.tsx
+++ b/web/app/components/app/annotation/edit-annotation-modal/index.tsx
@@ -117,7 +117,7 @@ const EditAnnotationModal: FC
= ({
{t('appAnnotation.editModal.removeThisCache')}
- {createdAt &&
{t('appAnnotation.editModal.createdAt')} {dayjs(createdAt * 1000).format('YYYY-MM-DD hh:mm')}
}
+ {createdAt &&
{t('appAnnotation.editModal.createdAt')} {dayjs(createdAt * 1000).format('YYYY-MM-DD HH:mm')}
}
)
: undefined
diff --git a/web/app/components/app/annotation/list.tsx b/web/app/components/app/annotation/list.tsx
index 093c42b76c..03ceb09bc8 100644
--- a/web/app/components/app/annotation/list.tsx
+++ b/web/app/components/app/annotation/list.tsx
@@ -54,7 +54,7 @@ const List: FC = ({
className='whitespace-nowrap overflow-hidden text-ellipsis max-w-[250px]'
title={item.answer}
>{item.answer}
- {dayjs(item.created_at * 1000).format('YYYY-MM-DD hh:mm')} |
+ {dayjs(item.created_at * 1000).format('YYYY-MM-DD HH:mm')} |
{item.hit_count} |
e.stopPropagation()}>
{/* Actions */}
diff --git a/web/app/components/app/annotation/view-annotation-modal/index.tsx b/web/app/components/app/annotation/view-annotation-modal/index.tsx
index 5674c59d6d..16a95b823e 100644
--- a/web/app/components/app/annotation/view-annotation-modal/index.tsx
+++ b/web/app/components/app/annotation/view-annotation-modal/index.tsx
@@ -142,7 +142,7 @@ const ViewAnnotationModal: FC = ({
>{item.response} |
{item.source} |
{item.score ? item.score.toFixed(2) : '-'} |
- {dayjs(item.created_at * 1000).format('YYYY-MM-DD hh:mm')} |
+ {dayjs(item.created_at * 1000).format('YYYY-MM-DD HH:mm')} |
))}
@@ -214,7 +214,7 @@ const ViewAnnotationModal: FC = ({
{t('appAnnotation.editModal.removeThisCache')}
- {t('appAnnotation.editModal.createdAt')} {dayjs(createdAt * 1000).format('YYYY-MM-DD hh:mm')}
+ {t('appAnnotation.editModal.createdAt')} {dayjs(createdAt * 1000).format('YYYY-MM-DD HH:mm')}
)
: undefined}
diff --git a/web/app/components/base/chat/chat/index.tsx b/web/app/components/base/chat/chat/index.tsx
index 4597446cf1..8e723b06f7 100644
--- a/web/app/components/base/chat/chat/index.tsx
+++ b/web/app/components/base/chat/chat/index.tsx
@@ -10,7 +10,6 @@ import {
useState,
} from 'react'
import { useTranslation } from 'react-i18next'
-import { useThrottleEffect } from 'ahooks'
import { debounce } from 'lodash-es'
import type {
ChatConfig,
@@ -100,10 +99,19 @@ const Chat: FC = ({
chatFooterInnerRef.current.style.width = `${chatContainerInnerRef.current.clientWidth}px`
}, [])
- useThrottleEffect(() => {
+ useEffect(() => {
handleScrolltoBottom()
handleWindowResize()
- }, [chatList], { wait: 500 })
+ }, [handleScrolltoBottom, handleWindowResize])
+
+ useEffect(() => {
+ if (chatContainerRef.current) {
+ requestAnimationFrame(() => {
+ handleScrolltoBottom()
+ handleWindowResize()
+ })
+ }
+ })
useEffect(() => {
window.addEventListener('resize', debounce(handleWindowResize))
diff --git a/web/app/components/header/nav/nav-selector/index.tsx b/web/app/components/header/nav/nav-selector/index.tsx
index 8afcbf66a0..f65ccd1c34 100644
--- a/web/app/components/header/nav/nav-selector/index.tsx
+++ b/web/app/components/header/nav/nav-selector/index.tsx
@@ -76,7 +76,9 @@ const NavSelector = ({ curNav, navs, createText, onCreate, onLoadmore }: INavSel
- {nav.name}
+
+ {nav.name}
+
))
diff --git a/web/package.json b/web/package.json
index 646c827052..3eab2d2a5b 100644
--- a/web/package.json
+++ b/web/package.json
@@ -51,7 +51,7 @@
"mermaid": "10.4.0",
"negotiator": "^0.6.3",
"next": "^14.0.4",
- "next-nprogress-bar": "^2.1.2",
+ "next-nprogress-bar": "^2.3.8",
"qrcode.react": "^3.1.0",
"qs": "^6.11.1",
"rc-textarea": "^1.5.2",
diff --git a/web/yarn.lock b/web/yarn.lock
index 94bc8b4d2c..da47d507d1 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -5292,10 +5292,10 @@ neo-async@^2.6.2:
resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz"
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
-next-nprogress-bar@^2.1.2:
- version "2.1.2"
- resolved "https://registry.npmjs.org/next-nprogress-bar/-/next-nprogress-bar-2.1.2.tgz"
- integrity sha512-2Df5d7fr6uPx+BX8MkoWCfl+RjG+uWI5mA399e5sEe8mbT3q/GIUvCXLzBgJBIISpKuMmdLAOYEzqpjlsRVOWw==
+next-nprogress-bar@^2.3.8:
+ version "2.3.9"
+ resolved "https://registry.yarnpkg.com/next-nprogress-bar/-/next-nprogress-bar-2.3.9.tgz#f271abb7e1f6bc95b024256f8dcec041dd63bcdb"
+ integrity sha512-X4nJqpyXcqpXwcSyCzed8hKWnOCqzLaINVHdwokKpuJ76Qj8EGB9mPqwCcFhgXsvIdlzPLAKxq6ajPI9tSYmig==
dependencies:
nprogress "^0.2.0"
@@ -5369,7 +5369,7 @@ npm-run-path@^5.1.0:
nprogress@^0.2.0:
version "0.2.0"
- resolved "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz"
+ resolved "https://registry.yarnpkg.com/nprogress/-/nprogress-0.2.0.tgz#cb8f34c53213d895723fcbab907e9422adbcafb1"
integrity sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==
nth-check@^2.0.1: