- 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>
23 lines
598 B
Batchfile
23 lines
598 B
Batchfile
@echo off
|
|
REM Test: Endpoint public /api/health
|
|
REM Ce endpoint doit être accessible SANS authentification
|
|
|
|
echo ========================================
|
|
echo TEST: /api/health (PUBLIC)
|
|
echo ========================================
|
|
echo.
|
|
echo Expected: Status 200, JSON avec "status":"ok"
|
|
echo.
|
|
|
|
curl -s -w "\nHTTP Status: %%{http_code}\n" http://localhost:3000/api/health
|
|
|
|
echo.
|
|
echo ========================================
|
|
if %ERRORLEVEL% EQU 0 (
|
|
echo RESULTAT: OK - Endpoint accessible
|
|
) else (
|
|
echo RESULTAT: ERREUR - Curl failed
|
|
)
|
|
echo ========================================
|
|
pause
|