Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Only add _meta title to api prompt when dev mode is enabled in UI.

comfyanonymouse478b1794e91
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 73dba65cc..62b71c0a1 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -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;
}
}