- Ajout support custom API keys (Anthropic/OpenAI) dans localStorage - Backend utilise custom keys si fournis (pas de déduction rate limit) - Tentative fix rate limiter pour /api/llm/limit (skip globalLimiter) - Fix undefined/undefined dans compteur requêtes - Ajout error loop prevention (stop après 5 erreurs) - Reset quotidien à minuit pour compteur LLM Note: Problème 429 persiste, à débugger à la maison 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"admin": {
|
|
"id": "admin",
|
|
"name": "Admin",
|
|
"role": "admin",
|
|
"apiKey": "d9be0765-c454-47e9-883c-bcd93dd19eae",
|
|
"createdAt": "2025-12-02T06:57:35.077Z",
|
|
"active": true,
|
|
"requestsToday": 35,
|
|
"dailyLimit": -1,
|
|
"lastUsed": "2025-12-02T08:02:37.203Z",
|
|
"llmTokens": {
|
|
"totalInput": 0,
|
|
"totalOutput": 0,
|
|
"today": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"date": "2025-12-02"
|
|
}
|
|
},
|
|
"llmRequestsToday": 0,
|
|
"llmDailyLimit": -1
|
|
},
|
|
"e7932d61-abbd-4f92-b0d9-779e56e42963": {
|
|
"id": "e7932d61-abbd-4f92-b0d9-779e56e42963",
|
|
"name": "TestUser",
|
|
"role": "user",
|
|
"apiKey": "008d38c2-e6ed-4852-9b8b-a433e197719a",
|
|
"createdAt": "2025-12-02T07:06:17.791Z",
|
|
"active": true,
|
|
"requestsToday": 100,
|
|
"dailyLimit": 100,
|
|
"lastUsed": "2025-12-02T08:09:45.029Z",
|
|
"llmTokens": {
|
|
"totalInput": 0,
|
|
"totalOutput": 0,
|
|
"today": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"date": "2025-12-02"
|
|
}
|
|
},
|
|
"llmRequestsToday": 0,
|
|
"llmDailyLimit": 20
|
|
}
|
|
} |