feat: 添加 verify_ssl 开关并简化 config_loader#158
Open
ericluo wants to merge 1 commit into
Open
Conversation
…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>
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.
Summary
verify_ssl开关,支持不校验 HTTPS 证书的场景verify_ssl从model_config一路透传到 aiohttpTCPConnectorconfig_loader.load_llm_models()中的内存缓存,改为每次直接读取load_llm_model()中的字典查找逻辑Changes
dayu/contracts/model_config.pyverify_ssl: bool字段dayu/engine/async_openai_runner.pyverify_ssl决定是否使用TCPConnector(verify_ssl=False)dayu/engine/runner_factory.pyverify_ssl到 Runnerdayu/host/agent_builder.pyverify_ssldayu/startup/config_loader.pyTest plan
verify_ssl=false时 aiohttp 不校验证书(如 deepseek 等场景)verify_ssl=true(默认)时行为与变更前一致config_loader.load_llm_models()每次返回正确结果(无缓存)load_llm_model()环境变量替换仍正常工作🤖 Generated with Claude Code