Replies: 10 comments 17 replies
-
要支持 Markdown ? |
Beta Was this translation helpful? Give feedback.
-
建议增加一种报错状态,gpt 聊天啥的,尤其是生成图片之类的,经常会有失败的情况,失败后可以加一个重试按钮等 |
Beta Was this translation helpful? Give feedback.
-
<ChatBox
items={[
{ content: 你好 , placement: start }
{ content: 你是谁 , placement: 'end'}
]}
footer={<Input/>}
/>
`` |
Beta Was this translation helpful? Give feedback.
-
把内容放 children 里? |
Beta Was this translation helpful? Give feedback.
-
感觉可以增加增加一个消息时间的展示,可以展示在卡片顶部或底部 |
Beta Was this translation helpful? Give feedback.
-
这个 loading 在没办法拿到具体的进度时就没法用了,需要提供一个普适的版本。 |
Beta Was this translation helpful? Give feedback.
-
ChatBox => Chat.Bubble |
Beta Was this translation helpful? Give feedback.
-
我们这个东西的定位一定是 AI 场景吗?感觉类似 ChatBox 的组件,在 IM 等聊天场景也是可以呀!是不是不要把组件限死了 |
Beta Was this translation helpful? Give feedback.
-
Motivation
ChatBox is generally used in AI Chat scenarios, providing ability to show formatted message with streaming motion.
API
ReactNode
'start' | 'end'
boolean
(content: string) => ReactNode
boolean | { step: number, interval: number }
string
Example
Basic
Waiting for Response
loading
is set false manually.Step
step: 20
means 20 charactes will be append in each stream chunk.interval: 500
means new chunk will wait 500ms after previous chunk is rendered.With Markdown
content
ofrender
only contains stream content ifstream
is enabled.Detailed Design
Beta Was this translation helpful? Give feedback.
All reactions