Fix Discover search returning nothing for niche base models #9
Loading…
Reference in a new issue
No description provided.
Delete branch "nimby/fix-discover-base-model-search"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
search_models(base_models=...) only ever fetched one page and
post-filtered it client-side. A default-sorted first page can easily
contain zero matches for a niche/newer base model even though real
matches exist a few pages in -- reported by the user searching "Anima"
in the Base model filter, reproduced against live civitai.com
(fetched_count=25, 0 matches on page 1; 6 real matches exist within 5
pages).
A fresh base-model-filtered search now auto-follows up to
MAX_BASE_MODEL_SEARCH_PAGES (5) pages looking for at least
limitmatches. An explicit "Load more" click (cursor_url given) still
fetches exactly one page, matching what the click implies.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com