workflows/hash_vault_basic.json wires the canonical cache-skip pattern: one StringConstantMultiline feeds both DeterministicHashVault (for hashing) and GeminiImageGenerate (for the actual API call). On cache hit the Lazy API Switch short-circuits the Gemini branch entirely — no API call, no charge. On miss, Gemini runs, HashVaultSave writes the result to disk, and the next run with the same prompt is a hit. README updated with a walkthrough and the pack dependencies (ComfyUI-API-Optimizer, ComfyUI-Gemini-Direct, ComfyUI-KJNodes for the StringConstantMultiline primitive — any STRING-output node works in its place). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
14 lines
377 B
TOML
14 lines
377 B
TOML
[project]
|
|
name = "comfyui-api-optimizer"
|
|
description = "API cost tracking, deterministic hash caching, and lazy execution bypass for cloud API workflows"
|
|
version = "1.1.0"
|
|
license = { file = "LICENSE" }
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/jeremieLouvaert/ComfyUI-API-Optimizer"
|
|
|
|
[tool.comfy]
|
|
PublisherId = "akurate"
|
|
DisplayName = "ComfyUI API Optimizer"
|
|
Icon = ""
|