Commit Graph

3 Commits

Author SHA1 Message Date
empty
8aa8021d61 chore: 更新 user-agent 版本为 0.40.2
- user-agent-updater.js 默认值
- config.json 配置值
2025-12-27 13:58:32 +08:00
Claude Code
dec2f26b5c fix: 修复 system 提示词中敏感词导致的 403 错误
- 修改 docker-compose.yml:将宿主机端口从 3000 改为 3001
- 修改 routes.js:增强 system 字段过滤逻辑,过滤所有项中的敏感词
- 修改 transformers/request-anthropic.js:添加 filterSensitiveKeywords 函数
- 修改 user-agent-updater.js:优化错误日志输出,增加超时时间

过滤规则:
- "Claude Code" → "AI Assistant"
- "Claude" → "AI"
- "Anthropic" → "Factory"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-26 18:56:26 +00:00
1eon
c31b680d95 feat: add dynamic user-agent version updater
- Add user-agent-updater.js to automatically fetch latest factory-cli version
- Fetch version from https://downloads.factory.ai/factory-cli/LATEST on startup
- Automatically refresh version every hour
- Implement retry mechanism: max 3 retries with 1-minute intervals on failure
- Use user_agent from config.json as fallback value
- Update config.js to use dynamic user-agent
- Initialize updater in server.js startup sequence
2025-11-16 16:25:15 +08:00