Skip to content

feat: 添加 verify_ssl 开关并简化 config_loader#158

Open
ericluo wants to merge 1 commit into
noho:mainfrom
ericluo:feat/verify-ssl-and-config-loader-refactor
Open

feat: 添加 verify_ssl 开关并简化 config_loader#158
ericluo wants to merge 1 commit into
noho:mainfrom
ericluo:feat/verify-ssl-and-config-loader-refactor

Conversation

@ericluo

@ericluo ericluo commented May 5, 2026

Copy link
Copy Markdown

Summary

  • 为 OpenAI 兼容 Runner 增加 verify_ssl 开关,支持不校验 HTTPS 证书的场景
  • verify_sslmodel_config 一路透传到 aiohttp TCPConnector
  • 移除 config_loader.load_llm_models() 中的内存缓存,改为每次直接读取
  • 简化 load_llm_model() 中的字典查找逻辑

Changes

文件 变更说明
dayu/contracts/model_config.py 新增 verify_ssl: bool 字段
dayu/engine/async_openai_runner.py 根据 verify_ssl 决定是否使用 TCPConnector(verify_ssl=False)
dayu/engine/runner_factory.py 透传 verify_ssl 到 Runner
dayu/host/agent_builder.py 从配置读取 verify_ssl
dayu/startup/config_loader.py 移除内存缓存,简化查找逻辑

Test plan

  • 验证 verify_ssl=false 时 aiohttp 不校验证书(如 deepseek 等场景)
  • 验证 verify_ssl=true(默认)时行为与变更前一致
  • 验证 config_loader.load_llm_models() 每次返回正确结果(无缓存)
  • 验证 load_llm_model() 环境变量替换仍正常工作

🤖 Generated with Claude Code

…oader

- 为 OpenAI 兼容 Runner 增加 verify_ssl 开关,支持不校验 HTTPS 证书的场景
- 将 verify_ssl 从 model_config 一路透传到 aiohttp TCPConnector
- 移除 config_loader.load_llm_models 中的内存缓存,改为每次直接读取
- 简化 load_llm_model 中的字典查找逻辑

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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