From 016157019c17ac3ab89b70d85205078706f2e5f7 Mon Sep 17 00:00:00 2001 From: Rares Tudor <160609469+RaresEduard-Tudor@users.noreply.github.com> Date: Tue, 9 Jun 2026 20:31:29 +0200 Subject: [PATCH] fix(tools): use _INTERNAL_BASE in serve-session endpoint registration (#3675) #3322 renamed the loopback base to _INTERNAL_BASE, but a later Cookbook commit reintroduced one call site using the old _COOKBOOK_BASE name, raising NameError whenever the agent registers a model endpoint for a running serve session. Fixes #3669 --- src/tool_implementations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_implementations.py b/src/tool_implementations.py index 5e62e686c..c9b4fa294 100644 --- a/src/tool_implementations.py +++ b/src/tool_implementations.py @@ -2684,7 +2684,7 @@ async def _ensure_served_endpoint( try: async with httpx.AsyncClient(timeout=30) as client: resp = await client.post( - f"{_COOKBOOK_BASE}/api/model-endpoints", + f"{_INTERNAL_BASE}/api/model-endpoints", data=payload, headers=_internal_headers(), )