- Implemented PromptManager for saving and loading prompts by category with backup functionality. - Added API endpoints for managing prompts, including saving, deleting, and importing prompts. - Introduced WorkflowSaver to capture and save workflow_data snapshots into prompt library entries. - Included thumbnail generation from images for saved workflows. - Enhanced error handling and validation for API requests.
1 line
7.8 KiB
JSON
1 line
7.8 KiB
JSON
{"id":"961aa600-cd2b-4e3c-8303-2122ff4499fe","revision":0,"last_node_id":62,"last_link_id":107,"nodes":[{"id":31,"type":"WorkflowRenderer","pos":[3060,-860],"size":[320,645.3333333333334],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","link":32},{"localized_name":"source_image","name":"source_image","shape":7,"type":"IMAGE","link":null},{"localized_name":"clear_cache_after_render","name":"clear_cache_after_render","type":"BOOLEAN","widget":{"name":"clear_cache_after_render"},"link":null}],"outputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","links":[]},{"localized_name":"output_image","name":"output_image","type":"IMAGE","links":[102]},{"localized_name":"output_latent","name":"output_latent","type":"LATENT","links":null}],"properties":{"Node name for S&R":"WorkflowRenderer"},"widgets_values":[false]},{"id":38,"type":"SaveImage","pos":[3410,-860],"size":[480,970],"flags":{},"order":3,"mode":0,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":102},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null}],"outputs":[],"properties":{"Node name for S&R":"SaveImage"},"widgets_values":["ComfyUI"]},{"id":29,"type":"WorkflowExtractor","pos":[2230,-860],"size":[270,580],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","links":[107]},{"localized_name":"image","name":"image","type":"IMAGE","links":null}],"properties":{"Node name for S&R":"WorkflowExtractor","pe_extracted_data":"{\"positive_prompt\":\"A photograph of a 20-year-old woman engaged in cosplay. she is dressed in colorful clothing. She is standing on a stage infront of a crowd, singing.\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"model_a\":\"z_image_turbo_bf16.safetensors\",\"model_b\":\"z_image_bf16.safetensors\",\"model_a_found\":true,\"model_b_found\":true,\"loras_a\":[],\"loras_b\":[],\"vae\":{\"name\":\"ae.safetensors\",\"source\":\"embedded\"},\"vae_found\":true,\"clip\":{\"names\":[\"qwen_3_4b.safetensors\"],\"type\":\"\",\"source\":\"embedded\"},\"sampler\":{\"steps_a\":9,\"steps_b\":null,\"cfg\":1,\"seed_a\":723238742,\"seed_b\":null,\"sampler_name\":\"euler\",\"scheduler\":\"normal\"},\"resolution\":{\"width\":720,\"height\":1280,\"batch_size\":1,\"length\":null},\"is_video\":false,\"model_family\":\"zimage\",\"model_family_label\":\"Z-Image\",\"lora_availability\":{}}"},"widgets_values":["output","ComfyUI_00017_.png",null,0]},{"id":28,"type":"WorkflowBuilder","pos":[2540,-860],"size":[478,1195],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"workflow_data","name":"workflow_data","shape":7,"type":"WORKFLOW_DATA","link":107},{"localized_name":"pos_prompt","name":"pos_prompt","shape":7,"type":"STRING","link":null},{"localized_name":"neg_prompt","name":"neg_prompt","shape":7,"type":"STRING","link":null},{"localized_name":"seed_a","name":"seed_a","shape":7,"type":"INT","link":null},{"localized_name":"seed_b","name":"seed_b","shape":7,"type":"INT","link":null},{"localized_name":"lora_stack_a","name":"lora_stack_a","shape":7,"type":"LORA_STACK","link":null},{"localized_name":"lora_stack_b","name":"lora_stack_b","shape":7,"type":"LORA_STACK","link":null}],"outputs":[{"localized_name":"workflow_data","name":"workflow_data","type":"WORKFLOW_DATA","links":[32]}],"properties":{"Node name for S&R":"WorkflowBuilder","we_ui_state":"{\"model_a\":\"ZIT\\\\z_image_turbo_bf16.safetensors\",\"model_b\":\"ZIB\\\\z_image_bf16.safetensors\",\"vae\":\"ae.safetensors\",\"clip_names\":[\"qwen_3_4b.safetensors\"],\"steps_a\":9,\"cfg\":1,\"seed_a\":723238742,\"sampler_name\":\"euler\",\"scheduler\":\"normal\",\"width\":720,\"height\":1280,\"batch_size\":1,\"_ratio\":\"9:16\",\"positive_prompt\":\"A photograph of a 20-year-old woman engaged in cosplay. she is dressed in colorful clothing. She is standing on a stage infront of a crowd, singing.\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"_family\":\"zimage\",\"loras_a\":[],\"loras_b\":[],\"_lora_availability\":{}}","we_extracted_cache":"{\"positive_prompt\":\"A photograph of a 20-year-old woman engaged in cosplay. she is dressed in colorful clothing. She is standing on a stage infront of a crowd, singing.\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"model_a\":\"z_image_turbo_bf16.safetensors\",\"model_b\":\"z_image_bf16.safetensors\",\"model_a_found\":true,\"model_b_found\":true,\"loras_a\":[],\"loras_b\":[],\"vae\":{\"name\":\"ae.safetensors\",\"source\":\"embedded\"},\"vae_found\":true,\"clip\":{\"names\":[\"qwen_3_4b.safetensors\"],\"type\":\"\",\"source\":\"embedded\"},\"sampler\":{\"steps_a\":9,\"steps_b\":null,\"cfg\":1,\"seed_a\":723238742,\"seed_b\":null,\"sampler_name\":\"euler\",\"scheduler\":\"normal\"},\"resolution\":{\"width\":720,\"height\":1280,\"batch_size\":1,\"length\":null},\"is_video\":false,\"model_family\":\"zimage\",\"model_family_label\":\"Z-Image\",\"lora_availability\":{}}","we_workflow_loras":"{\"a\":[],\"b\":[]}","we_input_loras":"{\"a\":[],\"b\":[]}","we_workflow_prompts":"{\"positive\":\"A photograph of a 20-year-old woman engaged in cosplay. she is dressed in colorful clothing. She is standing on a stage infront of a crowd, singing.\",\"negative\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\"}","we_override_data":"{\"model_a\":\"ZIT\\\\z_image_turbo_bf16.safetensors\",\"model_b\":\"ZIB\\\\z_image_bf16.safetensors\",\"vae\":\"ae.safetensors\",\"clip_names\":[\"qwen_3_4b.safetensors\"],\"steps_a\":9,\"cfg\":1,\"seed_a\":723238742,\"sampler_name\":\"euler\",\"scheduler\":\"normal\",\"width\":720,\"height\":1280,\"batch_size\":1,\"_ratio\":\"9:16\",\"positive_prompt\":\"A photograph of a 20-year-old woman engaged in cosplay. she is dressed in colorful clothing. She is standing on a stage infront of a crowd, singing.\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"_family\":\"zimage\",\"loras_a\":[],\"loras_b\":[],\"_lora_availability\":{}}","we_lora_state":"{}"},"widgets_values":["{\"model_a\":\"ZIT\\\\z_image_turbo_bf16.safetensors\",\"model_b\":\"ZIB\\\\z_image_bf16.safetensors\",\"vae\":\"ae.safetensors\",\"clip_names\":[\"qwen_3_4b.safetensors\"],\"steps_a\":9,\"cfg\":1,\"seed_a\":723238742,\"sampler_name\":\"euler\",\"scheduler\":\"normal\",\"width\":720,\"height\":1280,\"batch_size\":1,\"_ratio\":\"9:16\",\"positive_prompt\":\"A photograph of a 20-year-old woman engaged in cosplay. she is dressed in colorful clothing. She is standing on a stage infront of a crowd, singing.\",\"negative_prompt\":\"worst quality,bad quality lowres, jpeg, artifacts, signature, username, text ,logo, bad anatomy, shoes, tail, 3d model, 3d art, loli, gloves, big breast, short body, shoes, anime art,\",\"_family\":\"zimage\",\"loras_a\":[],\"loras_b\":[],\"_lora_availability\":{}}","{}",""]}],"links":[[32,28,0,31,0,"WORKFLOW_DATA"],[102,31,1,38,0,"IMAGE"],[107,29,0,28,0,"WORKFLOW_DATA"]],"groups":[],"config":{},"extra":{"workflowRendererVersion":"LG","ds":{"scale":0.9646149645000037,"offset":[-1219.7891378764373,1102.837681903328]}},"version":0.4} |