Skip to content

Commit

Permalink
优化检索引用连接展示,避免url解析错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Apr 17, 2024
1 parent e1b7e55 commit ae8e831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/controllers/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ async function receiveStream(model: string, convId: string, stream: any) {
}
// 处理联网搜索
else if (!silentSearch && result.event == 'search_plus' && result.msg && result.msg.type == 'get_res')
refContent += `${result.msg.title}(${result.msg.url})\n`;
refContent += `${result.msg.title} - ${result.msg.url}\n`;
// else
// logger.warn(result.event, result);
}
Expand Down Expand Up @@ -707,7 +707,7 @@ function createTransStream(model: string, convId: string, stream: any, endCallba
choices: [
{
index: 0, delta: {
content: `检索 ${result.msg.title}(${result.msg.url}) ...\n`
content: `检索 ${result.msg.title} - ${result.msg.url} ...\n`
}, finish_reason: null
}
],
Expand Down

0 comments on commit ae8e831

Please sign in to comment.