MicroFish/backend/app
octo-patch a07841e91b fix: handle string attributes in graph ontology to prevent TypeError crash (fixes #135)
When the LLM returns ontology attributes as plain strings instead of
dicts, set_ontology() crashes with "TypeError: string indices must be
integers, not 'str'" at attr_def["name"].

Two-layer fix:
1. ontology_generator.py: normalize string attrs to {"name", "type",
   "description"} dicts during validation, so downstream code always
   receives well-formed structures.
2. graph_builder.py: add isinstance guard as a safety net in
   set_ontology() for both entity and edge attribute loops.

Co-Authored-By: Octopus <liyuan851277048@icloud.com>
2026-07-22 19:51:19 +08:00
..
api fix: stop Step2 polling after preparation failure 2026-07-22 19:47:20 +08:00
models feat(i18n): replace hardcoded Chinese in backend SSE progress messages 2026-04-01 16:32:10 +08:00
services fix: handle string attributes in graph ontology to prevent TypeError crash (fixes #135) 2026-07-22 19:51:19 +08:00
utils fix: keep GPT-5 compatibility handling narrow 2026-07-22 19:48:32 +08:00
__init__.py Implement Report Agent for automated report generation and interaction 2025-12-09 15:10:55 +08:00
config.py Merge pull request #445: disable Flask debug mode by default 2026-07-22 19:40:39 +08:00