feat(chains): remove think tags
This commit is contained in:
parent
584d02b92a
commit
ffa793056d
3 changed files with 6 additions and 0 deletions
|
|
@ -202,6 +202,8 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||
|
||||
return { query: question, docs: docs };
|
||||
} else {
|
||||
question = question.replace(/<think>.*?<\/think>/g, '');
|
||||
|
||||
const res = await searchSearxng(question, {
|
||||
language: 'en',
|
||||
engines: this.config.activeEngines,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue