Open-Generative-AI/electron
Anil Matcha 5b860e512b fix(wan2gp): auto-discover Gradio api_names so calls don't hit FnIndexInferError
Wan2GP renames its Gradio api_names between releases (and Pinokio packages
drop them on some endpoints), so our hardcoded fn strings (ltx_video, flux,
qwen_image, wan22_t2v, etc.) failed against any current server with
"Could not infer function index for API name". Now we pull /info at probe
time, cache the registered api_names per base URL, and remap each catalog
entry via exact fn match → fnAliases → fuzzy family+type match. Unmatched
models report a clear unavailableReason in listModels(), and generate()
throws an error listing the real available endpoints instead of a cryptic
Gradio traceback.

Fixes #135.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 13:08:27 +05:30
..
lib fix(wan2gp): auto-discover Gradio api_names so calls don't hit FnIndexInferError 2026-04-30 13:08:27 +05:30
main.js feat(local-ai): add Wan2GP HTTP provider as a second local engine 2026-04-26 02:13:58 +05:30
preload.js fix(local): route Video Studio uploads + generate through Wan2GP when a local model is selected 2026-04-27 19:55:35 +05:30