mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-11-11 04:49:25 +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;
|
return innerStr + codeHead + chunk;
|
||||||
}
|
}
|
||||||
else if(type == 'code' && partStatus == 'finish' && codeGenerating) {
|
else if(type == 'code' && partStatus == 'finish' && codeGenerating) {
|
||||||
const codeFooter = '```\n';
|
const codeFooter = '\n```\n';
|
||||||
codeGenerating = false;
|
codeGenerating = false;
|
||||||
codeTemp = '';
|
codeTemp = '';
|
||||||
textOffset += codeFooter.length;
|
textOffset += codeFooter.length;
|
||||||
|
Loading…
Reference in New Issue
Block a user