mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-27 23:25:22 -04:00
fix(models): query v1 models for llama-server endpoints (#3380)
* fix(models): query v1 models for llama-server endpoints * test(models): accept owner kwargs in llama-server regression
This commit is contained in:
+3
-1
@@ -1042,7 +1042,9 @@ def list_model_ids(
|
||||
if provider == "ollama":
|
||||
models_url = _ollama_api_root(base_chat_url) + "/tags"
|
||||
else:
|
||||
models_url = base_chat_url.replace("/chat/completions", "/models")
|
||||
from src.endpoint_resolver import build_models_url
|
||||
|
||||
models_url = build_models_url(base_chat_url)
|
||||
r = httpx.get(models_url, headers=h, timeout=timeout)
|
||||
r.raise_for_status()
|
||||
data = r.json()
|
||||
|
||||
Reference in New Issue
Block a user