mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 06:30:16 +09:00
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
Block a user