Fix: ignored agentflow LLM structuredOutput keys (#4982)

Fix: ignored structuredOutput keys
This commit is contained in:
russelj1 2025-07-30 15:28:33 +01:00 committed by GitHub
parent 46816c7c1e
commit 498129e9d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -897,7 +897,7 @@ class LLM_Agentflow implements INode {
if (isStructuredOutput && typeof response === 'object') {
const structuredOutput = response as Record<string, any>
for (const key in structuredOutput) {
if (structuredOutput[key]) {
if (structuredOutput[key] !== undefined && structuredOutput[key] !== null) {
output[key] = structuredOutput[key]
}
}