Spaces:
Running
Running
Commit History
-
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
-
fix: upgrade to python 3.12 for divicast compatibility
thdivicast requires Python >=3.12 🦊 Generated with Sisiec38125
-
Fix Dockerfile to copy data directory for rituals database
th +1: Claude Sonnet 4.5- Add COPY data/ ./data/ to include rituals JSON files - Fixes 'Rituals database not found' error in HuggingFace Space 🦊 Generated with Sisi Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>b590cea
-
🐛 Fix Dockerfile: Copy all Python files
thCritical Fix: - Dockerfile was only copying app.py and bazi_calculator.py - Missing: nine_stars.py, constellation_28.py, calendar_service.py, etc. - Changed to: COPY *.py . (copy all Python files) This fixes the ModuleNotFoundError on Hugging Face Space Root Cause: - When we added new modules, Dockerfile wasn't updated - Space rename triggered rebuild, but files weren't copied to container - Git repo has all files, but Docker container didn't 🦊 Generated with Sisi9bbca5d
-
🔮 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