mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix: message do not use knowledge (#5485)
This commit is contained in:
parent
1ac9ac09c9
commit
3cad49f8fc
@ -116,8 +116,9 @@ export default abstract class BaseProvider {
|
||||
const allReferences = [...webSearchReferences, ...reindexedKnowledgeReferences]
|
||||
|
||||
console.log(`Found ${allReferences.length} references for ID: ${message.id}`, allReferences)
|
||||
if (!isEmpty(webSearchReferences)) {
|
||||
const referenceContent = `\`\`\`json\n${JSON.stringify(webSearchReferences, null, 2)}\n\`\`\``
|
||||
|
||||
if (!isEmpty(allReferences)) {
|
||||
const referenceContent = `\`\`\`json\n${JSON.stringify(allReferences, null, 2)}\n\`\`\``
|
||||
return REFERENCE_PROMPT.replace('{question}', content).replace('{references}', referenceContent)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user