Spaces:
Runtime error

Macbath commited on
Commit
23d3d12
·
1 Parent(s): ce06eb4

Feat: 增强 JSON 解析能力,支持 json5 和自动修复

Browse files

- 添加 json5 库支持(更宽容的 JSON 解析)
- 新增 _parse_json_with_fallback() 方法(4级降级策略)
- 新增 _repair_json() 方法(修复常见 LLM JSON 错误)
- 更新 _parse_response() 和 _parse_batch_response()
- 改进错误处理,避免返回错误占位符

2 files changed +133 -25
Files changed (2)
agents/modeling_agent.py+132-25
requirements.txt+1