docs: add OpenAI-compatible API documentation (#395)

This commit is contained in:
Cameron
2026-02-25 10:40:41 -08:00
committed by GitHub
parent b6394fb3a5
commit cdfb7e1cd5
3 changed files with 192 additions and 0 deletions

View File

@@ -777,6 +777,10 @@ data: {"type":"result","success":true}
**Multi-agent:** In multi-agent configs, use the `agent` field to target a specific agent by name. Omit it to use the first agent. A 404 is returned if the agent name doesn't match any configured agent.
### OpenAI-Compatible Endpoint
The API server also exposes `/v1/chat/completions` and `/v1/models` -- a drop-in OpenAI-compatible API. Use it with the OpenAI Python/Node SDK, Open WebUI, or any compatible client. See the [OpenAI-Compatible API docs](openai-compat.md) for details.
## Environment Variables
Environment variables override config file values: