Skip to content

chore: maintenance fixes - scheduler, AI client, dead code removal#82

Open
feifeinorfly wants to merge 1 commit into
TNT-Likely:mainfrom
feifeinorfly:pr-chore-maintenance
Open

chore: maintenance fixes - scheduler, AI client, dead code removal#82
feifeinorfly wants to merge 1 commit into
TNT-Likely:mainfrom
feifeinorfly:pr-chore-maintenance

Conversation

@feifeinorfly

Copy link
Copy Markdown
  • 修复 auto_trigger.py:将 AgentConfig 字段名 raw_config 更改为 config
  • 在paper_trading和price_alert调度程序中添加misfire_grace_time=60
  • 在AIClient中添加TokenLimitError、令牌估计和max_tokens限制,以防止上下文溢出错误
  • 移除死代码:doctor.py(命令行界面自检,已替换为/api/health/selfcheck)
  • 简化Docker构建:使用预构建的前端,而不是在Docker内部构建(移除了node:20-alpine阶段)

- Fix auto_trigger.py: AgentConfig field name raw_config -> config
- Add misfire_grace_time=60 to paper_trading and price_alert schedulers
- Add TokenLimitError, token estimation and max_tokens clamping to AIClient
  to prevent context overflow errors
- Remove dead code: doctor.py (CLI self-check, replaced by /api/health/selfcheck)
- Simplify Docker build: use pre-built frontend instead of in-Docker build
  (removes node:20-alpine stage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant