From 9f0c5274428d8c5cfbbb3ac5a40dc9c982959a5b Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 6 Apr 2026 12:08:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20health=5Fcheck=20timeout=203=E2=86=925?= =?UTF-8?q?=EC=B4=88=20=E2=80=94=20MLX=20cold=20start=20=EB=8C=80=EC=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- nanoclaude/services/model_adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nanoclaude/services/model_adapter.py b/nanoclaude/services/model_adapter.py index e13641b..7885e3a 100644 --- a/nanoclaude/services/model_adapter.py +++ b/nanoclaude/services/model_adapter.py @@ -100,9 +100,9 @@ class ModelAdapter: return data["choices"][0]["message"]["content"] async def health_check(self) -> bool: - """GET /v1/models — 3초 timeout.""" + """GET /v1/models — 5초 timeout.""" try: - async with httpx.AsyncClient(timeout=3.0) as client: + async with httpx.AsyncClient(timeout=5.0) as client: resp = await client.get(f"{self.base_url}/v1/models") return resp.status_code < 500 except Exception: