MicroFish/backend/app/api
liyizhouAI b7df4880c8 fix: v0.3.4 - production stability fixes for simulation pipeline
- LLM JSON truncation: add _repair_truncated_json() to handle max_tokens cutoff
- Ontology generation: increase max_tokens 4096→8192 to prevent truncation
- Config generation: parallel batch processing (3 threads × 30 agents/batch) for ~3x speedup
- Rate limit: reduce semaphore 30→8 to avoid GLM API 429 storms
- HuggingFace offline: set HF_HUB_OFFLINE=1 to skip unreachable hf-mirror.com
- Simulation recovery: auto-reset stuck "preparing" states on Flask restart
- Prepare endpoint: handle concurrent prepare requests gracefully
- Frontend: handle page-refresh-during-prepare edge case
- API: return 429 instead of 500 for LLM rate limit errors
2026-04-16 22:44:40 +08:00
..
__init__.py feat: v0.3 - Manus replay + token tracking + SIGTERM fix + accelerate button 2026-04-15 09:37:22 +08:00
graph.py fix: v0.3.4 - production stability fixes for simulation pipeline 2026-04-16 22:44:40 +08:00
report.py feat: v0.3 - Manus replay + token tracking + SIGTERM fix + accelerate button 2026-04-15 09:37:22 +08:00
simulation.py fix: v0.3.4 - production stability fixes for simulation pipeline 2026-04-16 22:44:40 +08:00
usage.py feat: v0.3 - Manus replay + token tracking + SIGTERM fix + accelerate button 2026-04-15 09:37:22 +08:00