MicroFish/backend/app
Md_Mushfiqur Rahim 0a3272197b fix: remove response_format=json_object from chat_json, increase ontology max_tokens
Bug 1: chat_json() was passing response_format={'type': 'json_object'}
to the LLM, which enforces JSON grammar from token 0. Reasoning
models (Qwen3, DeepSeek-R1, etc.) generate <think>...</think> blocks
before JSON output, causing garbled results. The fix removes the
response_format parameter since the system prompt already requests
JSON output and the existing <think> cleanup handles any remaining
tags.

Bug 2: ontology_generator hardcoded max_tokens=4096, causing
truncation for models with larger context windows. Increased to
16384 to accommodate reasoning model outputs.

Fixes #642
2026-05-27 02:36:58 +00:00
..
api fix(i18n): replace hardcoded Chinese stage names in simulation prepare SSE 2026-04-01 17:31:00 +08:00
models feat(i18n): replace hardcoded Chinese in backend SSE progress messages 2026-04-01 16:32:10 +08:00
services fix: remove response_format=json_object from chat_json, increase ontology max_tokens 2026-05-27 02:36:58 +00:00
utils fix: remove response_format=json_object from chat_json, increase ontology max_tokens 2026-05-27 02:36:58 +00:00
__init__.py Implement Report Agent for automated report generation and interaction 2025-12-09 15:10:55 +08:00
config.py refactor: add type hints and FileParser.is_supported() helper 2026-05-23 14:57:46 +08:00