去除非流式请求中的来源标记

This commit is contained in:
Vinlic 2024-05-06 09:46:03 +08:00
parent 6f48e347eb
commit afc9c96d02

View File

@ -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) {