From 78d7d003a026b2d87402b6a0be39b5b47de1f8a8 Mon Sep 17 00:00:00 2001 From: chengyongru <2755839590@qq.com> Date: Thu, 16 Apr 2026 22:39:41 +0800 Subject: [PATCH] fix(auth): append /v1 to api_base so OpenAI SDK hits correct proxy path --- nanobot/cli/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/cli/auth.py b/nanobot/cli/auth.py index 5f2c05b32..063d85c29 100644 --- a/nanobot/cli/auth.py +++ b/nanobot/cli/auth.py @@ -23,7 +23,7 @@ def _write_provider_config(token: str, server_url: str) -> None: """Write token, server URL, and set nanobot as default provider.""" config = load_config() config.providers.nanobot.api_key = token - config.providers.nanobot.api_base = server_url + config.providers.nanobot.api_base = f"{server_url}/v1" # Switch default provider to nanobot so `nanobot agent` works directly config.agents.defaults.provider = "nanobot"