diff --git a/web/app/components/base/loading/style.css b/web/app/components/base/loading/style.css index 4c690b84b5..276654ae69 100644 --- a/web/app/components/base/loading/style.css +++ b/web/app/components/base/loading/style.css @@ -1,5 +1,5 @@ .spin-animation path { - animation: custom 1s linear infinite; + animation: custom 2s linear infinite; } @keyframes custom { @@ -29,13 +29,13 @@ } .spin-animation path:nth-child(2) { - animation-delay: 0.25s; -} - -.spin-animation path:nth-child(3) { animation-delay: 0.5s; } -.spin-animation path:nth-child(4) { +.spin-animation path:nth-child(3) { animation-delay: 1s; } + +.spin-animation path:nth-child(4) { + animation-delay: 2s; +} diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx index ae995d5ba4..739882a4b4 100644 --- a/web/app/components/develop/template/template_chat.en.mdx +++ b/web/app/components/develop/template/template_chat.en.mdx @@ -38,7 +38,7 @@ For versatile conversational apps using a Q&A format, call the chat-messages API - streaming returns. Implementation of streaming return based on SSE (**[Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)**). - (Optional) Conversation ID: ‼️ leave empty for first-time conversation ‼️; pass conversation_id from context to continue dialogue. + (Required) Conversation ID: ‼️ leave it empty for first-time (eg. conversation_id: "") conversation ‼️; pass conversation_id from context to continue dialogue. The user identifier, defined by the developer, must ensure uniqueness within the app. @@ -47,7 +47,7 @@ For versatile conversational apps using a Q&A format, call the chat-messages API - + ```bash {{ title: 'cURL' }} curl --location --request POST 'https://cloud.langgenius.dev/api/chat-messages' \ diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx index 4e3f6a992c..c736ff057b 100644 --- a/web/app/components/develop/template/template_chat.zh.mdx +++ b/web/app/components/develop/template/template_chat.zh.mdx @@ -38,7 +38,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' - streaming 流式返回。基于 SSE(**[Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)**)实现流式返回。 - (选填)‼️ 会话标识符,首次对话为空 ‼️,如果要继续对话请传入上下文返回的 conversation_id + (必填)‼️ 会话标识符,首次对话为 conversation_id: "" ‼️,如果要继续对话请传入上下文返回的 conversation_id 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。 @@ -47,7 +47,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' - + ```bash {{ title: 'cURL' }} curl --location --request POST 'https://cloud.langgenius.dev/api/chat-messages' \ @@ -57,7 +57,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' "inputs": {}, "query": "eh", "response_mode": "streaming", - "conversation_id": "1c7e55fb-1ba2-4e10-81b5-30addcea2276", + "conversation_id": "", "user": "abc-123" }' ```