From 56efd73979c23c4ec06a0f9c6c19525b29100b24 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 3 Jul 2026 04:26:24 -0700 Subject: [PATCH] [eric] 9router: stop custom-provider reconcile reaping the cp-openai node (broke every gpt-*-api request) --- backend/apps/nine_router/sync_custom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/apps/nine_router/sync_custom.py b/backend/apps/nine_router/sync_custom.py index 3c0f03f8..c6f2cc64 100644 --- a/backend/apps/nine_router/sync_custom.py +++ b/backend/apps/nine_router/sync_custom.py @@ -253,7 +253,8 @@ async def sync_custom_providers(providers: list) -> None: # Drop managed nodes no longer in settings; DELETE cascades to connections. for prefix, node in managed_by_prefix.items(): - if prefix in seen_prefixes: + # cp-openai wears the same managed suffix but belongs to sync_openai_compat_node; reaping it here killed every gpt-*-api request with "No credentials". + if prefix in seen_prefixes or prefix == NINE_ROUTER_OPENAI_KEYED_PREFIX: continue try: async with nr().httpx.AsyncClient(timeout=5.0, headers=cli_auth_headers()) as client: