fixing parsing node -- hold tight

This commit is contained in:
Steve Tietze
2026-01-09 16:24:13 +07:00
parent a17032451d
commit 7ac2f331cd
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -58,6 +58,13 @@ Kie.ai uses a credit-based model for requests. There is no subscription requirem
## Debugging and job visibility
You can review request history and results at https://kie.ai/logs. Some models can take longer to finish; the default timeout has been increased to reduce false failures.
## Sponsorship / Development
This project is developed and maintained with support from **Dreaming Computers**
https://dreamingcomputers.com
Dreaming Computers is an independent studio exploring AI, creative tooling, and automation-driven workflows. The nodes in this pack are built from practical use cases and ongoing experimentation, and are shared with the community as they evolve.
## Disclaimer
This software is provided as-is. You are responsible for managing your own API usage and credits.
+2 -2
View File
@@ -18,11 +18,11 @@ def _extract_prompt_index(key: Any) -> int | None:
key_norm = str(key).strip().lower()
if not key_norm:
return None
prompt_match = re.match(r"^(?:p|prompt)[\\s_\\-]*([1-9]\\d*)$", key_norm)
prompt_match = re.match(r"^(?:p|prompt)[\s_\-]*([1-9]\d*)$", key_norm)
if prompt_match:
match = prompt_match
else:
match = re.match(r"^([1-9]\\d*)$", key_norm)
match = re.match(r"^([1-9]\d*)$", key_norm)
if not match:
return None
try: