mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
5064506de4
commit
ffad1f1dd1
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ export const replaceTokens = (content, sourceIds, char, user) => {
|
||||||
const sourceId = sourceIds[idx - 1];
|
const sourceId = sourceIds[idx - 1];
|
||||||
return sourceId
|
return sourceId
|
||||||
? `<source_id data="${idx}" title="${encodeURIComponent(sourceId)}" />`
|
? `<source_id data="${idx}" title="${encodeURIComponent(sourceId)}" />`
|
||||||
: match;
|
: `[${idx}]`;
|
||||||
})
|
})
|
||||||
.join('');
|
.join('');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue