Harden LLM access: secrets only in server .env, no URL in repo.
Require LLM_BASE_URL and LLM_API_KEY for automatic generation, add per-user rate limits, stop publishing backend/LLM settings in docker-compose, and document secure deployment.
This commit is contained in:
+3
-2
@@ -581,14 +581,15 @@ Todas con `Authorization: Bearer <token>`.
|
||||
|
||||
| Código | Ejemplo |
|
||||
|--------|---------|
|
||||
| 503 | `LLM_API_KEY` no configurada (`llm_unavailable`). |
|
||||
| 503 | LLM no configurado en el servidor (`llm_unavailable`: faltan `LLM_BASE_URL` y/o `LLM_API_KEY` en `.env`). |
|
||||
| 429 | Demasiadas generaciones automáticas por usuario (`llm_rate_limited`). |
|
||||
| 422 | JSON del modelo inválido (`parse_error`). |
|
||||
|
||||
```json
|
||||
{
|
||||
"error": {
|
||||
"code": "llm_unavailable",
|
||||
"message": "LLM_API_KEY is not configured"
|
||||
"message": "Automatic AI generation is not available"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user