mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-29 00:50:22 +09:00
fix: stream output
This commit is contained in:
parent
ab54303e7b
commit
cf243c990f
@ -347,7 +347,7 @@ export class AgentApi {
|
||||
customTools: any[],
|
||||
) {
|
||||
try {
|
||||
process.env.LANGCHAIN_CALLBACKS_BACKGROUND = 'true';
|
||||
process.env.LANGCHAIN_CALLBACKS_BACKGROUND = "true";
|
||||
let useTools = reqBody.useTools ?? [];
|
||||
const serverConfig = getServerSideConfig();
|
||||
|
||||
@ -482,7 +482,7 @@ export class AgentApi {
|
||||
tools,
|
||||
maxIterations: reqBody.maxIterations,
|
||||
});
|
||||
await agentExecutor
|
||||
agentExecutor
|
||||
.invoke(
|
||||
{
|
||||
input: lastHumanMessage,
|
||||
|
Loading…
Reference in New Issue
Block a user