Skip to content

Commit

Permalink
Only add _meta title to api prompt when dev mode is enabled in UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Dec 27, 2023
1 parent f15dce7 commit e478b17
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions web/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1781,14 +1781,19 @@ export class ComfyApp {
}
}

output[String(node.id)] = {
let node_data = {
inputs,
class_type: node.comfyClass,
};

if (this.ui.settings.getSettingValue("Comfy.DevMode")) {
// Ignored by the backend.
"_meta": {
node_data["_meta"] = {
title: node.title,
},
};
}
}

output[String(node.id)] = node_data;
}
}

Expand Down

0 comments on commit e478b17

Please sign in to comment.