docs: update serve api key requirement

maintainer edit: Align OpenAI-compatible API docs and examples with the new fail-closed api.api_key requirement while keeping /health documented as unauthenticated.
This commit is contained in:
chengyongru
2026-07-08 12:16:12 +08:00
committed by Xubin Ren
parent 460c62c0b0
commit 28141ce20b
4 changed files with 22 additions and 12 deletions
+2
View File
@@ -204,6 +204,8 @@ Default API endpoint:
http://127.0.0.1:8900
```
`nanobot serve` requires `api.apiKey`; send it as a Bearer token on API routes.
See [`openai-api.md`](./openai-api.md) for request examples.
## Status