docs: add /api/models endpoint to README and CLAUDE.md
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -53,6 +53,7 @@ Three tables in SQLite:
|
|||||||
All require `X-Api-Key` header. All responses use envelope: `{success, data, error}`.
|
All require `X-Api-Key` header. All responses use envelope: `{success, data, error}`.
|
||||||
|
|
||||||
- `GET /api/health` — health check (DB + worker)
|
- `GET /api/health` — health check (DB + worker)
|
||||||
|
- `GET /api/models` — list available Claude models (aliases + default)
|
||||||
- `POST|GET /api/topics`, `GET|PUT|DELETE /api/topics/{id}` — topic CRUD
|
- `POST|GET /api/topics`, `GET|PUT|DELETE /api/topics/{id}` — topic CRUD
|
||||||
- `POST /api/topics/{id}/summarize` — regenerate complete topic summary
|
- `POST /api/topics/{id}/summarize` — regenerate complete topic summary
|
||||||
- `POST /api/requests` (202) — submit prompt (async queue), `GET|DELETE /api/requests[/{id}]`
|
- `POST /api/requests` (202) — submit prompt (async queue), `GET|DELETE /api/requests[/{id}]`
|
||||||
|
|||||||
@@ -62,6 +62,15 @@ Documentazione interattiva:
|
|||||||
- Swagger UI: `https://opus-agent.tielogic.xyz/docs`
|
- Swagger UI: `https://opus-agent.tielogic.xyz/docs`
|
||||||
- ReDoc: `https://opus-agent.tielogic.xyz/redoc`
|
- ReDoc: `https://opus-agent.tielogic.xyz/redoc`
|
||||||
|
|
||||||
|
### Modelli disponibili
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl http://localhost:8000/api/models -H "X-Api-Key: TUA_KEY"
|
||||||
|
```
|
||||||
|
|
||||||
|
Ritorna i modelli disponibili dall'SDK (`default`, `opus`, `sonnet`, `opusplan`) e il modello
|
||||||
|
di default configurato. Gli alias possono essere usati nel campo `model` di topic e richieste.
|
||||||
|
|
||||||
### Esempio d'uso
|
### Esempio d'uso
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user