mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-29 16:12:06 -04:00
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
This commit is contained in:
@@ -2684,7 +2684,7 @@ async def _ensure_served_endpoint(
|
|||||||
try:
|
try:
|
||||||
async with httpx.AsyncClient(timeout=30) as client:
|
async with httpx.AsyncClient(timeout=30) as client:
|
||||||
resp = await client.post(
|
resp = await client.post(
|
||||||
f"{_COOKBOOK_BASE}/api/model-endpoints",
|
f"{_INTERNAL_BASE}/api/model-endpoints",
|
||||||
data=payload,
|
data=payload,
|
||||||
headers=_internal_headers(),
|
headers=_internal_headers(),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user