mirror of
https://github.com/Anil-matcha/Open-Generative-AI.git
synced 2026-05-07 01:17:18 +00:00
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> |
||
|---|---|---|
| .. | ||
| localInference.js | ||
| modelCatalog.js | ||
| wan2gpProvider.js | ||