Commit f72a780f by Liu

feat:知识问答增加流式打印!

parent 10d7d167
......@@ -309,6 +309,10 @@ export const Chat: React.FC = () => {
// 正常的stream数据
if (msg?.type === 'DATA' && msg?.content?.code === '00000000') {
// eslint-disable-next-line no-console
console.log('========================流式输出====================', msg)
// eslint-disable-next-line no-console
console.log('========================流式输出字符串====================', msg.content?.data)
handleStreamMesageData(msg, question)
}
if (msg?.type === 'DATA' && msg?.content?.code === '01010005') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment