MicroFish/backend/app/utils
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 fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
file_parser.py fix(file_parser): handle non-UTF-8 encoded text files with automatic encoding detection 2026-01-22 18:28:37 +08:00
llm_client.py fix: v0.3.4 - production stability fixes for simulation pipeline 2026-04-16 22:44:40 +08:00
locale.py fix(i18n): validate Accept-Language header against registered locales 2026-04-02 14:20:15 +08:00
logger.py feat: merge upstream i18n + rebrand MiroFish → Foresight 先见之明 2026-04-11 16:40:13 +08:00
retry.py feat: merge upstream i18n + rebrand MiroFish → Foresight 先见之明 2026-04-11 16:40:13 +08:00
token_tracker.py feat: v0.3 - Manus replay + token tracking + SIGTERM fix + accelerate button 2026-04-15 09:37:22 +08:00
zep_paging.py feat: merge upstream i18n + rebrand MiroFish → Foresight 先见之明 2026-04-11 16:40:13 +08:00