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