mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-05 09:15:58 +00:00
fix(auth): append /v1 to api_base so OpenAI SDK hits correct proxy path
This commit is contained in:
parent
eb74436207
commit
78d7d003a0
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user