Commit Graph

6 Commits

Author SHA1 Message Date
MiroFish Fix Bot 4cb20ff011 fix(backend): resolve 500 on ontology generation + Zep source_targets limit
- llm_client: SSE-aware streaming calls, empty-content retry, and
  bulletproof truncated-JSON recovery (handles unterminated strings,
  trailing comma/colon, BOM) so a truncated LLM response no longer 500s
- ontology_generator: raise max_tokens 4096->16384 (JSON was being
  truncated) and cap edge source_targets to 10 (Zep API limit) to
  fix 400 'source_targets cannot contain more than 10 items'
- graph: log the real exception on 500 for easier diagnosis
- frontend api: surface the backend's actual error message instead of
  just 'status code 500'
2026-07-10 15:24:29 +00:00
ghostubborn 7c07237544 fix(i18n): pass locale to background threads via thread-local storage
Background threads (graph building, simulation prep, report generation,
profile generation) now inherit the requesting user's locale preference.
Previously these fell back to 'zh' because Flask request context was
unavailable in spawned threads.
2026-04-01 16:55:51 +08:00
ghostubborn 9d43b77511 feat(i18n): replace hardcoded Chinese in backend SSE progress messages 2026-04-01 16:32:10 +08:00
ghostubborn 74f673a238 feat(i18n): replace hardcoded Chinese in backend API responses with t() calls 2026-04-01 15:32:24 +08:00
666ghj c60e6e1089 Refactor project creation process in API documentation and code
- Updated README.md to reflect the removal of the project creation endpoint, adjusting the workflow steps accordingly.
- Removed the `create_project` function from graph.py, streamlining the project management API by eliminating deprecated functionality.
2025-11-29 00:47:54 +08:00
666ghj 08f417f3b7 Introduce Project ID for context management, finalizing the stateful API pipeline from file submission to graph construction. 2025-11-28 17:21:08 +08:00