Open-Generative-AI/electron/lib
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
..
localInference.js fix(local-ai): walk back releases when latest is partial; broaden Linux match 2026-04-25 10:51:44 +05:30
modelCatalog.js fix(local-ai): correct Dreamshaper 8 download URL 2026-04-26 02:13:58 +05:30
wan2gpProvider.js fix(wan2gp): auto-discover Gradio api_names so calls don't hit FnIndexInferError 2026-04-30 13:08:27 +05:30