Skip to content

Commit

Permalink
去除非流式请求中的来源标记
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed May 6, 2024
1 parent 6f48e34 commit afc9c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/controllers/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit afc9c96

Please sign in to comment.