From 18c1755b7735acefbb182c0778f20c82cbab6400 Mon Sep 17 00:00:00 2001 From: SamgeShao Date: Tue, 14 Apr 2026 11:08:23 +0100 Subject: [PATCH] Fix: Simplify models_url for custom endpoint compatibility --- pixelle_video/utils/llm_util.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pixelle_video/utils/llm_util.py b/pixelle_video/utils/llm_util.py index fe411a17c..fc26b7c30 100644 --- a/pixelle_video/utils/llm_util.py +++ b/pixelle_video/utils/llm_util.py @@ -43,11 +43,7 @@ def fetch_available_models(api_key: str, base_url: str, timeout: float = 10.0) - base_url = base_url.rstrip("/") # Build the models endpoint URL - # Handle cases where base_url might or might not include /v1 - if base_url.endswith("/v1"): - models_url = f"{base_url}/models" - else: - models_url = f"{base_url}/v1/models" + models_url = f"{base_url}/models" headers = { "Authorization": f"Bearer {api_key}",