mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Fix: ignored agentflow LLM structuredOutput keys (#4982)
Fix: ignored structuredOutput keys
This commit is contained in:
@@ -897,7 +897,7 @@ class LLM_Agentflow implements INode {
|
|||||||
if (isStructuredOutput && typeof response === 'object') {
|
if (isStructuredOutput && typeof response === 'object') {
|
||||||
const structuredOutput = response as Record<string, any>
|
const structuredOutput = response as Record<string, any>
|
||||||
for (const key in structuredOutput) {
|
for (const key in structuredOutput) {
|
||||||
if (structuredOutput[key]) {
|
if (structuredOutput[key] !== undefined && structuredOutput[key] !== null) {
|
||||||
output[key] = structuredOutput[key]
|
output[key] = structuredOutput[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user