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 authored and Xubin Ren committed 2026-07-08 12:16:12 +08:00
1 parent 460c62c0b0
commit 28141ce20b
4 files changed
+22 -12

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ File operations have path traversal protection, but:
**API Calls:**
- All external API calls use HTTPS by default
- Timeouts are configured to prevent hanging requests
- The OpenAI-compatible API server must set `api.api_key` when binding to `0.0.0.0` or `::`; otherwise startup fails to prevent unauthenticated network access
- The OpenAI-compatible API server requires `api.api_key` for API routes; only `/health` remains unauthenticated for probes and load balancers
- Consider using a firewall to restrict outbound connections if needed
**WhatsApp:**