fix(OpenAI Node): Fix memory connector for assistant message (#17501)

This commit is contained in:
oleg
2025-07-21 15:09:17 +02:00
committed by GitHub
parent a1d2a55f7e
commit e51b056e3a

View File

@@ -281,10 +281,9 @@ export async function execute(this: IExecuteFunctions, i: number): Promise<INode
await memory.saveContext({ input }, { output: response.output });
if (response.threadId && response.runId) {
const threadRun = await client.beta.threads.runs.retrieve(
response.threadId,
response.runId,
);
const threadRun = await client.beta.threads.runs.retrieve(response.runId, {
thread_id: response.threadId,
});
response.usage = threadRun.usage;
}
}