chore: maintenance fixes - scheduler, AI client, dead code removal#82
Open
feifeinorfly wants to merge 1 commit into
Open
chore: maintenance fixes - scheduler, AI client, dead code removal#82feifeinorfly wants to merge 1 commit into
feifeinorfly wants to merge 1 commit into
Conversation
feifeinorfly
commented
Jul 7, 2026
- 修复 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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.