mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-23 01:19:22 +08:00
修复markdown代码输出
This commit is contained in:
parent
491bfcd84b
commit
1144841ed9
@ -657,7 +657,7 @@ function createTransStream(stream: any, endCallback?: Function) {
|
||||
return innerStr + codeHead + chunk;
|
||||
}
|
||||
else if(type == 'code' && partStatus == 'finish' && codeGenerating) {
|
||||
const codeFooter = '```\n';
|
||||
const codeFooter = '\n```\n';
|
||||
codeGenerating = false;
|
||||
codeTemp = '';
|
||||
textOffset += codeFooter.length;
|
||||
|
Loading…
Reference in New Issue
Block a user