Spaces:
Running
Running
th Claude Opus 4.5 commited on
Commit ·
9eb0f83
1
Parent(s): 6c79aca
🔧 v3.14.0 修复:添加macro_patterns到API响应
Browse files修复interpreter未返回macro_patterns的问题:
- star_combinations现在正确包含macro_patterns数据
- 紫微孤君、日月反背、星系类型分析结果现可在API响应中访问
🦊 Generated with Sisi
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
knowledge_enhanced_interpreter.py
CHANGED
|
@@ -335,12 +335,13 @@ class KnowledgeEnhancedInterpreter:
|
|
| 335 |
'highest_score': pattern_summary.get('highest_score', 0), # 最高分格局
|
| 336 |
'overall_quality': pattern_summary.get('overall_quality', 'unknown') # 整体质量
|
| 337 |
},
|
| 338 |
-
'star_combinations': { # NEW v3.8: 星曜组合断语 ⭐⭐
|
| 339 |
'matched_rules': star_combination_result['matched_rules'], # 匹配到的所有组合规则
|
| 340 |
'summary': star_combination_result['summary'], # 组合总结(含评分、分类统计)
|
| 341 |
'interpretations_by_category': star_combination_result['interpretations_by_category'], # 按分类整理的断语
|
| 342 |
'total_matched': star_combination_result['total_matched'], # 匹配数量
|
| 343 |
-
'total_rules_checked': star_combination_result['total_rules_checked'] # 检查的总规则数
|
|
|
|
| 344 |
},
|
| 345 |
'sihua_deep_analysis': sihua_deep_analysis, # ENHANCED: 四化深度解读
|
| 346 |
'life_overview': life_overview, # ENHANCED: 整体运势
|
|
|
|
| 335 |
'highest_score': pattern_summary.get('highest_score', 0), # 最高分格局
|
| 336 |
'overall_quality': pattern_summary.get('overall_quality', 'unknown') # 整体质量
|
| 337 |
},
|
| 338 |
+
'star_combinations': { # NEW v3.8: 星曜组合断语 ⭐⭐ | v3.14: 宏观格局分析 🌟
|
| 339 |
'matched_rules': star_combination_result['matched_rules'], # 匹配到的所有组合规则
|
| 340 |
'summary': star_combination_result['summary'], # 组合总结(含评分、分类统计)
|
| 341 |
'interpretations_by_category': star_combination_result['interpretations_by_category'], # 按分类整理的断语
|
| 342 |
'total_matched': star_combination_result['total_matched'], # 匹配数量
|
| 343 |
+
'total_rules_checked': star_combination_result['total_rules_checked'], # 检查的总规则数
|
| 344 |
+
'macro_patterns': star_combination_result.get('macro_patterns', {}) # v3.14.0新增:宏观格局分析
|
| 345 |
},
|
| 346 |
'sihua_deep_analysis': sihua_deep_analysis, # ENHANCED: 四化深度解读
|
| 347 |
'life_overview': life_overview, # ENHANCED: 整体运势
|