mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-11-01 07:59:24 +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;
|
||||
} else {
|
||||
data.choices[0].message.content =
|
||||
data.choices[0].message.content.replace(/【\d+†source】/g, "");
|
||||
data.choices[0].message.content.replace(/【\d+†来源】/g, "");
|
||||
resolve(data);
|
||||
}
|
||||
} catch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user