Fix V3 500 error: replace json_schema response_format with json_object

- Sonar does not support response_format type json_schema
- Switch to {"type": "json_object"} which Sonar supports
- Keep json_schema/schema_name params for call-site compatibility (ignored)
- Add exc_info=True to V3 generate error logging for full tracebacks
This commit is contained in:
KoalaTrapLord committed 2026-03-19 10:04:36 +00:00
1 parent 8eba39cca7
commit 87abfd801e
2 files changed
+14 -17

No files matched your search

+1 -3
View File
@@ -1290,9 +1290,7 @@ async def deck_gen_v3_generate(req: DeckGenV3Request):
except ValueError as e:
return JSONResponse({'error': str(e)}, status_code=422)
except Exception as e:
log_deckgen.error(f'Error: {e}')
import traceback
traceback.print_exc()
log_deckgen.error(f'V3 generate error: {e}', exc_info=True)
raise HTTPException(500, f'Deck generation failed: {str(e)}')