MCPcopy Index your code
hub / github.com/kijai/ComfyUI-WanVideoWrapper / get_cache_path

Function get_cache_path

nodes.py:156–159  ·  view source on GitHub ↗
(prompt)

Source from the content-addressed store, hash-verified

154cache_dir = os.path.join(script_directory, 'text_embed_cache')
155
156def get_cache_path(prompt):
157 cache_key = prompt.strip()
158 cache_hash = hashlib.sha256(cache_key.encode('utf-8')).hexdigest()
159 return os.path.join(cache_dir, f"{cache_hash}.pt")
160
161def get_cached_text_embeds(positive_prompt, negative_prompt):
162

Callers 3

get_cached_text_embedsFunction · 0.85
processMethod · 0.85
processMethod · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected