mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
feat: cites text with links
This commit is contained in:
parent
a286f027c8
commit
d0ecaabfd8
5 changed files with 13 additions and 6 deletions
|
|
@ -43,7 +43,7 @@ router.post('/', async (req, res) => {
|
|||
console.log('SYDNEY RESPONSE');
|
||||
console.log(response.response);
|
||||
// console.dir(response, { depth: null });
|
||||
const hasCitations = citationRegex.test(response.response);
|
||||
const hasCitations = response.response.match(citationRegex)?.length > 0;
|
||||
|
||||
// Save sydney response
|
||||
response.id = response.messageId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue