feat: 调整流输出为实验性质

This commit is contained in:
ChenZhaoYu
2023-02-23 10:36:16 +08:00
parent 10058f151c
commit 719a522512
6 changed files with 34 additions and 67 deletions

View File

@@ -65,6 +65,7 @@ async function chatReply(
}
}
/** 实验性质的函数,用于处理聊天过程中的中间结果 */
async function chatReplyProcess(
message: string,
lastContext?: { conversationId?: string; parentMessageId?: string },

View File

@@ -26,6 +26,7 @@ router.post('/chat', async (req, res) => {
}
})
/** 实验性质的函数,用于处理聊天过程中的中间结果 */
router.post('/chat-process', async (req, res) => {
res.setHeader('Content-type', 'application/octet-stream')