MicroFish/backend
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
..
app fix: remove response_format=json_object from chat_json, increase ontology max_tokens 2026-05-27 02:36:58 +00:00
scripts Add UTF-8 encoding support for Windows in simulation_runner.py and run_parallel_simulation.py to resolve character encoding issues with third-party libraries. 2025-12-26 18:14:57 +08:00
pyproject.toml fix(backend): constrain Python version to 3.11-3.12 2026-05-24 22:59:36 +08:00
requirements.txt fix(file_parser): handle non-UTF-8 encoded text files with automatic encoding detection 2026-01-22 18:28:37 +08:00
run.py Add UTF-8 encoding support for Windows console in run.py and logger.py to prevent character encoding issues 2025-12-26 17:58:48 +08:00
uv.lock fix(backend): constrain Python version to 3.11-3.12 2026-05-24 22:59:36 +08:00