From 2e2cc456d8f9732cfc20462619e4e0e2788d4f24 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:31:02 +0000 Subject: [PATCH 1/2] Initial plan From ce4700ae44abf55a87bc94b83c4d41e4cac2278e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:35:36 +0000 Subject: [PATCH 2/2] fix(api): swap parameter order in test_ai_extraction to fix 500 error Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- app/api/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/openai.py b/app/api/openai.py index 273d09cb..8a425e81 100644 --- a/app/api/openai.py +++ b/app/api/openai.py @@ -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.