mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-11-02 02:29:19 +08:00
添加流传输完毕提示
This commit is contained in:
parent
c54f89e9f8
commit
153ebdc1c8
@ -239,6 +239,7 @@ async function createCompletionStream(messages: any[], refreshToken: string, use
|
|||||||
|
|
||||||
// 创建转换流将消息格式转换为gpt兼容格式
|
// 创建转换流将消息格式转换为gpt兼容格式
|
||||||
return createTransStream(convId, result.data, () => {
|
return createTransStream(convId, result.data, () => {
|
||||||
|
logger.success('Stream has completed transfer');
|
||||||
// 流传输结束后异步移除会话,如果消息不合规,此操作可能会抛出数据库错误异常,请忽略
|
// 流传输结束后异步移除会话,如果消息不合规,此操作可能会抛出数据库错误异常,请忽略
|
||||||
removeConversation(convId, refreshToken)
|
removeConversation(convId, refreshToken)
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
|
Loading…
Reference in New Issue
Block a user