mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-12-23 02:29:20 +08:00
修复问题
This commit is contained in:
parent
c8c215448f
commit
d13ba31d0e
@ -161,7 +161,7 @@ async function receiveStream(convId: string, stream: any) {
|
||||
data.choices[0].message.content += result.text;
|
||||
}
|
||||
else if (result.event == 'all_done' || result.event == 'error') {
|
||||
data.choices[0].message.content += '\n[内容由于不合规被停止生成,我们换个话题吧]' + (refContent ? `\n\n搜索结果来自:\n${refContent}` : '');
|
||||
data.choices[0].message.content += (result.event == 'error' ? '\n[内容由于不合规被停止生成,我们换个话题吧]' : '') + (refContent ? `\n\n搜索结果来自:\n${refContent}` : '');
|
||||
refContent = '';
|
||||
resolve(data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user