Fiabilise le préchargement et le benchmark

This commit is contained in:
Michael committed 2026-07-07 15:25:12 +02:00
1 parent d9169a1d27
commit 0f6abf6dde
7 files changed
+154 -49

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ class OllamaClient:
async with httpx.AsyncClient(timeout=120.0, follow_redirects=True) as client:
resp = await client.post(
f"{self.host}/api/generate",
json={"model": model, "keep_alive": keep_alive},
json={"model": model, "keep_alive": keep_alive, "stream": False},
)
resp.raise_for_status()
return resp.json()