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