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:
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user