fix(api): swap parameter order in test_ai_extraction to fix 500 error

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-23 21:35:36 +00:00
parent 2e2cc456d8
commit ce4700ae44
+1 -1
View File
@@ -271,7 +271,7 @@ def _extract_json_from_text(text: str):
@router.post("/ai/test-extraction")
@require_login
async def test_ai_extraction(body: ExtractionTestRequest, request: Request):
async def test_ai_extraction(request: Request, body: ExtractionTestRequest):
"""
Run the metadata-extraction prompt against the configured AI provider.