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