phase 17: add request-level URL logging to OllamaClient for proxy debugging

This commit is contained in:
Celes Renata
2026-04-12 12:32:44 -07:00
parent fd35e12d5e
commit 45f0c03639
+7 -4
View File
@@ -222,11 +222,14 @@ class OllamaClient:
"stream": False,
}
url = f"{self._config.base_url}/api/chat"
logger.info(
"Ollama POST %s model=%s input_chars=%d",
url, self._config.model, len(prompts.get("user", "")),
)
try:
resp = await self._http.post(
f"{self._config.base_url}/api/chat",
json=payload,
)
resp = await self._http.post(url, json=payload)
_ = resp.raise_for_status()
except httpx.TimeoutException:
attempt.error = "timeout"