mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 20:53:45 +08:00
fix: vercel 504
This commit is contained in:
@@ -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(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user