mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-23 01:19:22 +08:00
去除非流式请求中的来源标记
This commit is contained in:
parent
6f48e347eb
commit
afc9c96d02
@ -839,7 +839,7 @@ async function receiveStream(stream: any): Promise<any> {
|
|||||||
data.choices[0].message.content += chunk;
|
data.choices[0].message.content += chunk;
|
||||||
} else {
|
} else {
|
||||||
data.choices[0].message.content =
|
data.choices[0].message.content =
|
||||||
data.choices[0].message.content.replace(/【\d+†source】/g, "");
|
data.choices[0].message.content.replace(/【\d+†来源】/g, "");
|
||||||
resolve(data);
|
resolve(data);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user