Spaces:
Running
Running
Commit History
21 days ago
-
Fix BaZi timezone and historical daylight-saving calculation
th40d3e55
-
fix(zodiac): route all-date fortune requests correctly
th0d81a1d
-
feat(bazi): add evidence-first dayun assessment
th0d792fe
-
feat(bazi): expose redacted dayun score preview
thd8fc2e3
-
fix: align strength and wealth readings with chart evidence
thf5bedf7
-
chore: 标记/analyze-dayun为deprecated — 2026-07-12排查确认全仓库零前端调用
th见 API_UNIFICATION_PLAN.md §6。只加注释,不删代码/不改行为。 🦊 Generated with Sisib6b7e9f -
feat: 四层schema追加(meta/strength/timing/evidence) — /calculate-bazi-complete
th只追加新字段,旧字段一个不改(已验证old_keys全部保留)。 - terms.py:天干/地支/十神/格局双语术语单一真相源,AI报告不用自己现翻译 (避免"七杀格"这次译Seven Killings下次译Qi Sha Ge这类漂移) - evidence.py:build_meta/build_strength/build_timing/build_evidence, 学vedic的formatEvidence模式——结论性事实+括号内数据来源,术语内嵌双语 - /calculate-bazi-complete 内部顺带跑一次GenjuAnalyzer(失败不影响老功能, try/except包住),把格局/用神结论也织进evidence——这填上了一个真实的产品缺口: 四条付费产品线此前只调这个endpoint,从未调用/analyze-genju,等于AI报告里 从没用过真正的格局/用神引擎计算结果,全靠LLM自己现场猜 - timing数组带clash flag(跟日支/月支相冲的大运自动标注,比如小鱼盘癸卯运 冲月支酉这类信号,以前只能人工口算) - 已用小鱼盘验证:pattern=七杀格、用神=食神、当前大运=壬寅(43-52)、 空亡=子丑,全部正确;test_golden_charts.py新增1条,13项全过 🦊 Generated with Sisiadccf05
-
fix: 4个预存在业务bug — 28宿/rituals分类/月相KeyError/statistics路由遮蔽
th1. Constellation28Calculator.get_constellation_for_date不存在,真实方法名 是get_constellation,导致/api/28-constellations/today 500 2. rituals_service缺get_categories()方法,导致/rituals 500;新增该方法 (去重排序类别列表) 3. get_current_moon_phase_rituals()返回currentPhase/fullMoonRituals/ newMoonRituals,但日志行引用不存在的result['total']/result['moon_phase'] 导致/rituals/moon-phase/current KeyError 500 4. /rituals/statistics与/rituals/{ritual_id}路径形状相同,FastAPI按注册 顺序匹配,后者先注册导致前者被当成ritual_id吞掉→404;statistics函数 挪到动态路由之前解决,顺带修复其读取stats['total_rituals']应为 stats['totalRituals']的字段名错误 TestClient实测四端点均从500/404变为200 🦊 Generated with Sisi27c005d -
fix: 鉴权fail-closed + 44端点async→def + Dockerfile锁依赖commit
th安全: 移除硬编码默认key fallback(sisi_default_key_change_me)。 API_KEY/SISI_HF_API_KEY均未配置时启动记录error日志,所有受保护 端点返回503拒绝服务,不再接受可猜测的默认key。 性能: 44个async def端点全部改为def(FastAPI线程池)。全文件零await, 纯同步CPU计算跑在async def里会阻塞uvicorn事件循环,单worker下 并发请求互相卡死(与ziwei API同类问题,badbcb4)。 供应链: Dockerfile克隆china-testing/bazi锁定到commit 7150d5b (2026-07-09 HEAD),上游变更/删库不再影响生产构建。 冒烟测试: 未配置key→503(任意key), 错误key→403, 正确key→200 (/api/qimen/now)。语法/导入均过。 🦊 Generated with Sisi76b1cf2
-
✨ Add 八宅法 fengshui calculator + API endpoints
th- fengshui_calculator.py: 完整八宅法引擎(命卦/宅卦/游年变卦/房间建议/命宅兼容性) - app.py: 新增 /api/fengshui/home-analysis, /api/fengshui/ming-gua, /api/fengshui/zhai-gua/{facing} 🦊 Generated with Sisicf8055d
-
refactor(liuyao): simplify calculator and harden API input validation
th- Remove dead WUXING_RELATIONS, inline redundant locals, drop what-comments - Single pass over symbol.lines (was 5 passes); O(1) subject_line lookup - Hoist PURPOSE_FOCUS to module-level constant - Extract _liuyao_response() shared helper; use exc_info=True to drop inline traceback imports - Add field_validator on coins: enforces length==6 and values 0-3 (returns 422 instead of 500) 🦊 Generated with Sisi2178c57 -
feat(liuyao): add Liu Yao divination calculator and API endpoints
thAdd complete 六爻 (Liu Yao) divination engine powered by divicast library with full chart data including 六亲, 六神, 世应, 动爻, 空亡. - New liuyao_calculator.py with 64-hexagram meanings database - POST /api/liuyao/divine (manual or auto coin divination) - GET /api/liuyao/now (current-moment divination) - Add divicast>=0.1.1 to requirements.txt 🦊 Generated with Sisi3889732
-
feat: add Qimen Dunjia (奇门遁甲) chart calculation module
th +1: Claude Opus 4.6 (1M context)- New qimen_calculator.py: complete 时家转盘奇门 engine - Earth/sky plate, nine stars, eight doors, eight gods - Kong wang (旬空), Ma star (驿马), palace fortune analysis - Purpose-specific recommendations (事业/财运/感情/etc) - New endpoints: POST /api/qimen/chart, GET /api/qimen/now - Test suite with 5 test cases all passing 🦊 Generated with Sisi Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>a960618
-
feat(i18n): add English translations to all BaZi analysis modules
th +1: Claude Opus 4.6 (1M context)- career_analyzer: 8 English dictionaries, 10 methods bilingual (701→2099 lines) - wealth_analyzer: 5 English dictionaries, 11 methods bilingual - health_analyzer: 4 English dictionaries, organ/disease/advice translations - marriage_analyzer: spouse star, palace, fortune year, 12 female rules bilingual - interpretation_templates: 10 English template dictionaries + get_templates(lang) - app.py: wire language parameter to all analyzers in /ai-interpretation endpoint All backward-compatible: default language='zh', existing callers unchanged. 🦊 Generated with Sisi Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>74e945d
-
feat: add /analyze-marriage-destiny endpoint for Love Clarity product
thNew LoveClarityAnalyzer module with: - Day Blade (日刃格) detection - 6 extreme risk day pillars - Enhanced peach blossom analysis - 5 types with quality grading - Hidden clash (暗克) analysis - marriage palace latent conflicts - Children star (食伤星) analysis - child impact on marriage - 2026 annual impact analysis - 丙午年 marriage influence - Cold reading hooks - 3 emotion-resonance anchors per chart New endpoint: POST /analyze-marriage-destiny Returns comprehensive structured JSON for love-clarity AI prompt consumption 🦊 Generated with Sisif25ebdc
-
🖐️ Add Five Elements body reading API for palm/face free preview hook
th- New body_reading_knowledge.py: Five Elements → hand/face/body/personality/health/career mappings - New body_reading_analyzer.py: Rule engine (BaZi → predicted body features, Barnum hooks) - New endpoint POST /analyze-body-reading: Free preview before paid AI analysis - Reduces cart abandonment by showing free Five Element predictions first 🦊 Generated with Sisica484f2
-
feat(career-api): add /career-monthly-fortune endpoint for Career Forecast product
th✨ New Features: - Added CareerMonthlyFortuneRequest model in app.py - Created /career-monthly-fortune API endpoint - Implemented _analyze_career_monthly_fortune() method - Added _get_ten_god() helper (ten-god calculation from gan) - Added _get_ten_god_from_branch() helper (ten-god from branch via canggan) 🎯 Product Differentiation: - Career-ONLY monthly analysis (not comprehensive fortune) - Separates Career Forecast (.99) from Tianji Oracle - Prevents content duplication for users who buy both products 📊 API Response Format (12 months): - month: YYYY-MM - month_ganzhi: 干支 - career_score: 0-100 - quality_cn: 大吉/顺遂/平稳/谨慎 - opportunities: career opportunities array - risks: career risks array - advice: actionable career advice - ten_god_gan/ten_god_zhi: for debugging 🔬 Technical Implementation: - Ten-god calculation based on 五行生克 (5-element relationships) - Seasonal adjustments (spring = growth, autumn = harvest) - Career scoring logic: 正官/七杀 (+10-15), 食神/伤官 (+8-12), 正财/偏财 (+8-10) …5b38521
-
🔮 Add cold-reading English support to monthly fortune API
thCore Changes: - Add language parameter (zh/en) to MonthlyFortuneRequest - Create apply_cold_reading_english() with Barnum Effect triggers - Add _get_ordinal() helper for proper ordinal formatting (1st, 2nd, 3rd) - 5 score-range templates with psychological triggers - Update endpoint to apply cold-reading when language="en" - Add typing.Any import for proper type hints Features: - Specific dates ("the 3rd", "between 8th and 15th") - "You" language ("you've been", "your instincts") - Emotional triggers ("that sinking feeling", "keeps you up at 3am") - Universal specifics ("the conversation you're avoiding") - Time anchors ("before the 8th", "around mid-month") Testing: - Comprehensive test suite (test_cold_reading.py) - Barnum Effect verification - Score range testing - Backward compatibility verified Documentation: - COLD_READING_EXAMPLES.md (examples and comparison) - COLD_READING_IMPLEMENTATION.md (deployment guide) - IMPLEMENTATION_SUMMARY.md (quick reference) Business Impact: - …1b52ac7
-
feat(api): Add /api/yearly-fortune endpoint for 12-month complete forecast
th- New YearlyFortuneRequest model with language support - Returns all 12 months in single API call (reduces frontend complexity) - Includes yearly_overview with avg_score, best/worst months - BaZi calculated once and reused for all months (performance optimization) - Supports both Chinese and English output - Powers Tianji Oracle Premium ($19.99) 🦊 Generated with Sisib0bd2b7
-
Add Energy Rituals API with 27 cross-cultural rituals for SisiTheFox.com
th +1: Claude Sonnet 4.5- Add rituals_service.py with 10+ service methods (search, recommend, categorize) - Add 8 REST API endpoints (/rituals, /rituals/search, /rituals/recommend, etc.) - Add 27-ritual JSON database (90K tokens) with complete details - Add test suite (test_rituals_api.py) covering all endpoints - Integrate with existing AstrologyBazi API for personalized recommendations - Expected revenue: $71K USD/year ($108K AUD) from premium subscriptions 🦊 Generated with Sisi Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>0a25f0d
-
feat(api): 实现东西融合综合运势评分系统 (0-120分)
th世界首创东方命理+西方星象融合评分算法: 核心功能: - 🌏 东方评分(70%): 身财关系量化 + 大运成败 + 流年吉凶 + 十神组合 - 🌎 西方评分(30%): Saturn Return + Jupiter Return + 行星过境 - 📊 0-120分综合评分体系,5级评级系统 技术突破: - 大运双维度评分:成败vs吉凶分离 (Chengbai vs Jixiong) - 行星回归周期:Saturn(29.5年) + Jupiter(12年)精准计算 - 十神组合智能检测:10种关键吉凶组合自动识别 - 身财关系4步量化:0-607分精确评估 新增模块: - fortune_score_calculator.py (770行) - 综合运势评分引擎 - body_wealth_calculator.py - 身财关系量化系统 - ten_god_combinations.py - 十神组合检测器 - /api/fortune-score endpoint - RESTful API接口 Bug修复: - 修复年龄计算bug (birth_info -> solar_date) - 修复API analyzer初始化参数 测试验证: - Saturn Return (28岁): 43.7/120 ⭐⭐ (压力期 -15分) - Jupiter Return (36岁): 65.0/120 ⭐⭐⭐ (机会期 +15分) - 双维度评分:成败分48,吉凶分90,综合60 🦊 Generated with Sisi0801a37
-
feat: 添加八字合婚评分系统 (Marriage Compatibility Analyzer)
th +1: Claude Opus 4.5基于《男女能結合的奧祕》五要则评分系统: - 八字相似 (25%): 相同字、相生、相合检测 - 禍福相同 (30%): 日主五行、婚姻宫关系分析 - 子女同步 (15%): 时柱子女宫分析 - 年支同氣 (15%): 三会方位、六合三合检测 - 日干舒配 (15%): 阴阳配合、天干五合 API端点: /api/marriage-compatibility 评级: 天作之合/上等/中上/中等/中下/下等/不宜婚配 🦊 Generated with Sisi Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>97d1f30
-
chore: bump version to 2.1.1 to force rebuild
th🦊 Generated with Sisi0cb9f26
-
feat(analyzers): add official position and legal risk analysis modules
thPhase 3.5 Analysis Modules: - OfficialAnalyzer: 8 positive + 4 negative official patterns, education rules - LegalRiskAnalyzer: 4 risk factors, 三刑 analysis, disaster year prediction - Integrated both into main API endpoint Also includes: - health_analyzer.py: Health risk analysis - xingchonghehe_calculator.py: 刑冲合害 calculator - Phase 3 completion report and tests 🦊 Generated with Sisi6949f45 -
feat(api): integrate WealthAnalyzer into main API
thComplete Phase 3 wealth analysis integration: - Add WealthAnalyzer import and instantiation - Include wealth_analysis in API response - Fix CareerAnalyzer missing dayun_analysis parameter All four Phase 3 analyzers now fully integrated: ✅ Marriage, Career, Health, Wealth 🦊 Generated with Sisi9d0f66c -
fix: 实现真实流年评分算法,修复平线问题
th +1: Sisi TheFox🎯 问题: - 流年运势图表显示为平线 - 同一大运内所有年份使用相同评分 ✅ 修复: 1. 添加五行干支映射和生克关系常量 2. 实现calculate_liunian_score()方法: - 基于流年干支五行属性计算波动 - 使用正弦波算法(70%天干 + 30%地支) - ±15分波动范围 3. 修改generate_100_years_data()调用新评分方法 4. 添加命令行端口参数支持(本地开发用8000) 5. 添加debug日志验证算法 📊 验证结果: - 测试数据35-44岁:56-78分,范围22分 - 每年评分基于真实命理关系,有明显波动 🦊 Generated with Sisi Co-Authored-By: Sisi TheFox <sisi@sisithefox.com>d36d309
-
🔧 Bump version to 2.1.0 - Force rebuild with Phase 1-5 features
th🦊 Generated with Sisif49a89f -
✨ feat: Complete BaZi Fortune Analysis System (Phases 1-5)
thImplement comprehensive Chinese astrology fortune-telling system with 5 major phases: Phase 1: Shensha Analysis (神煞系统) - 47 spiritual forces analyzer - Auspicious & inauspicious gods classification - Complete shensha data library Phase 2: Genju Pattern Analysis (格局系统) - 8 major pattern types identification - Yongshen (beneficial element) calculation - Pattern quality scoring (0-100) Phase 3: Dayun Major Cycles (大运系统) - 120-year fortune prediction - 10-year cycle analysis - Lifetime fortune trends Phase 4: AI Interpretation Engine (AI解读) - Natural language fortune reading - 3-tier service model (Basic/Pro/Master) - Technical terms to human-readable conversion Phase 5: Time Fortune Prediction (时间预测) - Monthly fortune analysis (流月) - Daily fortune & date selection (流日择日) - Hourly fortune analysis (时辰吉凶) - Auspicious date finder New API Endpoints: - POST /shensha-analysis - POST /genju-analysis - POST /dayun-analysis - POST /ai-interpretation - POST /monthly-fortune - POST /daily-for…ce5b13f -
🐉 新增生肖运程API - 2026年日运功能
th核心功能: 1. zodiac_fortune_service.py - 生肖运势算法 - 生肖与日地支关系判断(冲合刑害) - 事业/财运/感情/健康运势生成 - 吉时/幸运色/幸运数字推荐 2. API端点(3个): - GET /api/zodiac-fortune/today/{zodiac} - 今日生肖运程 - GET /api/zodiac-fortune/{zodiac}/{date} - 指定日期运程 - GET /api/zodiac-fortune/all/{date} - 12生肖运程 算法特点: - 基于黄历API数据(干支/宜忌/吉时) - 传统命理关系(六冲/六合/相刑/相害) - 零AI成本,完全算法生成 - 准确度高,SEO友好 用途: - mystic-zodiac-fortune站点日运功能 - 2026年马年生肖运程引流站 🦊 Generated with Sisi1208b15 -
🔧 Fix: Limit to 12 hours (remove 13th cross-day hour)
th +1: Sisi The FoxIssue: lunar-python getTimes() returns 13 hours including next day's first hour Fix: Limit to first 12 hours with times[:12] Now correctly returns exactly 12 hours per day (子-亥) 🦊 Generated with Sisi Co-Authored-By: Sisi The Fox <noreply@sisithefox.com>d0f5f64 -
✅ Fix: Restore traditional 6 auspicious + 6 inauspicious classification
th +1: Sisi The FoxCorrected the twelve celestial deities classification: - 六黄道(吉): 青龙、明堂、金匮、天德、玉堂、司命 - 六黑道(凶): 白虎、天刑、朱雀、天牢、玄武、勾陈 Previous error: Incorrectly classified 朱雀 and 勾陈 as neutral (中) Key insight: Daily hour fortunes vary because deities rotate based on the day's earthly branch (日支). This is correct behavior. References: - 华夏经纬网 十二神煞术语 - 天天黄历 十二神煞推算方法 🦊 Generated with Sisi Co-Authored-By: Sisi The Fox <noreply@sisithefox.com>21ed919 -
🌙 Add lunar-to-solar calendar conversion API
th +1: Sisi The FoxNew endpoint: POST /api/calendar/convert-lunar-to-solar Features: - Convert Chinese lunar date to Gregorian solar date - Support leap months (闰月) - Return complete calendar info (ganzhi, zodiac, weekday) - Validation: year (1900-2100), month (1-12), day (1-30) Request example: { "lunar_year": 2025, "lunar_month": 1, "lunar_day": 1, "is_leap_month": false } Response includes: solar_date, weekday, ganzhi, zodiac 🦊 Generated with Sisi Co-Authored-By: Sisi The Fox <noreply@sisithefox.com>61b3025 -
🌓 Add neutral (中平) fortune level for hours
th +1: Sisi The FoxUpdated 12-hour fortune classification to include neutral (中平) tier: - Moved 朱雀 and 勾陈 to ZHONG_SHEN_LIST - 朱雀: neutral, auspicious for literary/文事 matters - 勾陈: neutral, auspicious for litigation/诉讼 Now returns 3 fortune levels: 吉/凶/中 🦊 Generated with Sisi Co-Authored-By: Sisi The Fox <noreply@sisithefox.com>e9eb4f9
-
🔧 Bump version to 2.0.1 - Force complete rebuild
thFix: Hugging Face Space cache issue after rename - All modules (nine_stars, constellation_28) are in repo - Force complete rebuild to clear cache - Version: 2.0.0 → 2.0.1 🦊 Generated with Sisi652ba41 -
🎯 Rebrand to AstrologyBazi API v2.0
thMajor Rebranding: - Renamed from "Sisi BaZi API" to "AstrologyBazi API" - Updated version 1.0.0 → 2.0.0 - Aligned with astrologybazi.com website brand Updated Files: - README.md: Complete rebrand + new feature highlights - app.py: Service name, version, API metadata - USAGE_EXAMPLES.md: All URLs and references - All documentation and examples New Positioning: - "Complete Eastern Mysticism API" (not just BaZi) - World's most comprehensive Eastern fortune-telling API - Powering astrologybazi.com - 80%+ original code (九宫飞星 + 二十八星宿 + extensions) API Changes: - Base URL: sisithefox-astrologybazi-api.hf.space - Service response updated to "AstrologyBazi API" - Added website field: https://astrologybazi.com - Version bumped to 2.0.0 Next Steps: - Hugging Face Space rename (manual step required) - MCP package preparation - Commercial pricing strategy 🦊 Generated with Sisi16eedb2 -
⭐ Add 28 Lunar Mansions (二十八星宿) API Endpoints
thNew Features: - Complete 28 Constellations system implementation - Four Symbols classification (四象: 青龙/朱雀/白虎/玄武) - Fortune level ranking (1-5 stars) - Activity-based date selection (择日) - Auspicious date finder for weddings, business, moving API Endpoints: - POST /api/28-constellations/analyze - Detailed constellation analysis - GET /api/28-constellations/today - Today's constellation - POST /api/28-constellations/find-auspicious - Find lucky dates Key Features: - 28 complete constellation data entries - Activity recommendations (宜忌) - Date range search (up to 1 year) - Fortune scoring system - Traditional texts: 钦定协纪辨方书, 星宿择日法 Documentation: - Added complete API examples in README - Updated feature list - Added use cases for wedding/business date selection Integration: - Seamless integration with existing BaZi API - Lunar calendar compatibility - Protected endpoints with API key auth 🦊 Generated with Sisi5bf08af -
✨ Add Nine Flying Stars (九宫飞星) + 28 Constellations APIs
thNew Features: - 🌟 Nine Flying Stars Calculator (玄空风水九宫飞星) - Year/Month/Day/Hour flying stars calculation - Complete palace distribution analysis - Fortune analysis with lucky/unlucky directions - Based on traditional texts: 紫白赋, 沈氏玄空学, 玄空大卦 - ⭐ 28 Constellations System (二十八宿) - Daily constellation calculation - Auspicious activities recommendations - Based on traditional almanac API Endpoints: - POST /api/nine-stars/analyze - Detailed flying stars analysis - GET /api/nine-stars/today - Today's flying stars - GET /api/28-constellations/today - Today's constellation - GET /api/28-constellations/date/{date} - Specific date Documentation: - Updated README with complete API examples - Added Nine Flying Stars feature description - Added example responses for all new endpoints Technical Details: - Traditional algorithms verified against classical texts - Accurate lunar calendar integration - Comprehensive fortune scoring (1-10) - Direction-based recommendations 🦊 Generated…8be6be7 -
feat: Upgrade Calendar API with authentic almanac data
th✨ New Features: 1. 真实冲煞数据 (Authentic Chong Sha) - 完整格式: 冲🐑羊(丁未)煞东 with zodiac emoji - 替换假数据'冲待定' 2. 真实宜忌数据 (Authentic Yi Ji) - 使用lunar-python真实每日数据 - 替换硬编码的假数据 3. 吉神宜趋 & 凶煞宜忌 (Ji Shen & Xiong Sha) - almanac.ji_shen: 吉神宜趋列表 - almanac.xiong_sha: 凶煞宜忌列表 4. 彭祖百忌 (Pengzu Taboos) - almanac.pengzu.gan: 天干百忌 - almanac.pengzu.zhi: 地支百忌 5. 十二时辰吉凶 (12-Hour Fortune Analysis) ⭐ - auspicious_hours: 13个时辰数据 - 每个时辰包含: 干支/天神/吉凶/冲煞/时间段 - 吉凶分类: 吉(青龙明堂金匮天德玉堂司命)/凶(天刑朱雀白虎天牢玄武勾陈) 🔧 Technical Changes: - 添加ZHI_TO_ZODIAC/ZODIAC_EMOJI/JI_SHEN/XIONG_SHEN映射 - _get_almanac_for_date(): 使用lunar.getDayYi()/getDayJi() - _get_auspicious_hours(): 新方法返回12时辰吉凶 - 保留旧字段(chong/sha)向后兼容,新增chong_sha完整格式 📊 API Response Example: { "almanac": { "appropriate": ["嫁娶", "祭祀", ...], // 真实 "avoid": ["作灶", "塑绘", ...], // 真实 "chong_sha": "冲🐑羊(丁未)煞东", // ✨新增 "ji_shen": ["天恩", "天愿", ...], // ✨新增 "xiong_sha": ["复日", "八专", ...], // ✨新增 "pengzu": { …09e3435 -
fix: Reorder calendar endpoints to fix /range routing
th- Move /api/calendar/range before /api/calendar/{date_str} - FastAPI matches routes in order, {date_str} was catching 'range' - Correct order: /today → /range → /{date_str} - All three endpoints now work correctly 🔮 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>56953ae -
fix: Integrate ChineseCalendarService directly into app.py
th- Move calendar service code into app.py to avoid import issues - Remove dependency on calendar_service.py module - Add necessary imports (lunar_python, datetime, List, Dict) - Fix HuggingFace module not found error 🔮 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>e386cb0 -
feat: Add Chinese Calendar API
th- Add ChineseCalendarService with lunar-python library - 3 new public endpoints: /api/calendar/today, /{date}, /range - Provides 农历 conversion, 天干地支, 宜忌, 24节气, festivals - Support zodiac site and all fortune-telling products - No API key required (public endpoints) 🔮 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>62988c6 -
🔮 Add Premium BaZi API - 大运/流年/神煞 Complete Fortune Analysis
th +1: Claude Sonnet 4.5Added comprehensive fortune-telling features for monetization: ✨ New Features: - Complete BaZi calculation with 大运 (Dayun - Major Cycles) - 流年 (Liunian - Yearly Cycles) for each major cycle - 神煞 (Shensha - Spiritual Forces) analysis - 纳音 (Nayin - 60 Jia Zi elements) for all periods - 十神 relationships for all cycles 📊 New API Endpoint: - POST /calculate-bazi-complete - POST /api/calculate-bazi-complete - Returns 120 years of detailed fortune data by default - Configurable number of major cycles (num_dayun parameter) 🎯 Data Structure (per major cycle): - Start/end age ranges (e.g., 7-16, 17-26 years) - Complete 干支 (Ganzhi) with elements - Nayin classifications (城头土, 涧下水, etc.) - Ten Gods relationships for gan and zhi - Spiritual forces (驿马, 桃花, 文昌, 天乙贵人, etc.) - 10 yearly cycles with full metadata 💰 Monetization Foundation: - 10-year fortune predictions - Career timing analysis - Wealth opportunity windows - Investment decision support - Comprehensive life path planning 🛠️ Techn…370af6d
-
feat: support both API_KEY and SISI_HF_API_KEY
th- API_KEY: For HuggingFace (simple, only one key) - SISI_HF_API_KEY: For Cloudflare (clear among many keys) - Flexible naming for different deployment environmentsef5ce88 -
fix: use standard API_KEY env variable name
th- Changed to API_KEY to match other Sisi APIs (PDF, Astrology) - Consistent naming across all HuggingFace Spaces7cfcd8c -
fix: support SISI_HF_API_KEY environment variable
th- Added support for SISI_HF_API_KEY (primary) - Fallback to API_KEY for compatibility - Fixes 403 authentication error7f59c75 -
🔮 Complete BaZi Fortune Telling API
th +1: Claude Sonnet 4.5Features: - Accurate BaZi (八字) calculations using china-testing/bazi library - FastAPI with API key authentication - Docker deployment for HuggingFace Spaces - Support for solar and lunar calendars - Full analysis: Four Pillars, Day Master, Five Elements, Ten Gods, Hidden Stems - Comprehensive API documentation Endpoints: - GET /health - Health check (no auth) - POST /calculate-bazi - Full BaZi analysis - POST /calculate-bazi-simple - Simplified analysis Technical Stack: - FastAPI 0.115.5 - lunar-python 1.6.0 - china-testing/bazi library - Docker on HF Spaces Use Cases: - Face-reading apps - Astrology platforms (astrologybazi.com, sisiastrology.com.au) - Fortune-telling SaaS - Mobile apps 🤖 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>78b41d5