Support upcoming site frontend split

API endpoints are supposed to remain the same, so those don't need updating.
This commit is contained in:
awsr
2026-04-14 12:46:12 -07:00
committed by GitHub
parent 101bd64b8c
commit 03486deca6
+1 -1
View File
@@ -28,7 +28,7 @@ def search_civitai(
t0 = time.time()
# URL query → extract model ID (e.g. https://civitai.com/models/967405/nova-orange-xl)
url_match = re.match(r'https?://civitai\.com/models/(\d+)', query.strip())
url_match = re.match(r'https?://civitai\.(?:com|red)/models/(\d+)', query.strip())
if url_match:
query = url_match.group(1)
log.info(f'CivitAI: extracted model id={query} from URL')