Merged
Conversation
Owner
|
ruff check没通过 |
Owner
|
感谢贡献,我重新做了下调整: |
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.
优化内容
网络连接优化 (
utils/server_util.py):8.8.8.8(Google) 修改为223.5.5.5(阿里云),解决国内环境下启动超时或卡顿的问题。路由扫描优化 (
common/router.py):.git,venv,node_modules,__pycache__等无关目录,大幅减少 I/O 操作。懒加载优化 (
utils/ai_util.py,utils/common_util.py,utils/excel_util.py):pandas,openpyxl,agno等重量级库实施懒加载(Lazy Loading)。AI 服务优化 (
module_ai/service/ai_chat_service.py):agno相关的重量级类导入移至TYPE_CHECKING块,防止在 Router 注册阶段触发不必要的模块加载。