Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KFsGHju9szibJJa2YJcdbg
12 lines
269 B
Python
12 lines
269 B
Python
from fastapi import APIRouter
|
|
|
|
from .. import debuglog
|
|
|
|
router = APIRouter(prefix="/api/debug", tags=["debug"])
|
|
|
|
|
|
@router.get("/requests")
|
|
def recent_requests():
|
|
"""Most-recent-first log of provider requests/responses (no API keys)."""
|
|
return debuglog.recent()
|