fix: vercel 504
This commit is contained in:
parent
a2a398302b
commit
ab54303e7b
|
@ -347,6 +347,7 @@ export class AgentApi {
|
|||
customTools: any[],
|
||||
) {
|
||||
try {
|
||||
process.env.LANGCHAIN_CALLBACKS_BACKGROUND = 'true';
|
||||
let useTools = reqBody.useTools ?? [];
|
||||
const serverConfig = getServerSideConfig();
|
||||
|
||||
|
@ -481,7 +482,6 @@ export class AgentApi {
|
|||
tools,
|
||||
maxIterations: reqBody.maxIterations,
|
||||
});
|
||||
process.env.LANGCHAIN_CALLBACKS_BACKGROUND = 'true';
|
||||
await agentExecutor
|
||||
.invoke(
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue