feat(chains): remove think tags
This commit is contained in:
parent
584d02b92a
commit
ffa793056d
3 changed files with 6 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ const createVideoSearchChain = (llm: BaseChatModel) => {
|
|||
llm,
|
||||
strParser,
|
||||
RunnableLambda.from(async (input: string) => {
|
||||
input = input.replace(/<think>.*?<\/think>/g, '');
|
||||
|
||||
const res = await searchSearxng(input, {
|
||||
engines: ['youtube'],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue