Merged
Conversation
将 LLM 配置从 7 层覆盖关系简化为两层:config.yaml(全局默认)+ SubAgent DB(可选覆盖)。 - _default_model_config() 每次从 config.yaml 读取,修改后无需重启 - Provider 系统不再持久化 api_key 到 JSON,统一从 config.yaml 获取 - Session 不再持久化 model_name,改为动态从 config.yaml 读取展示 - SubAgent fallback 无参数时自动从 config.yaml 读取默认配置 - 更新相关单元测试和集成测试 Co-Authored-By: Claude Opus 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
_default_model_config()每次从~/.nimo/config.yaml读取,修改后无需重启即刻生效get_model_config()无 fallback 参数时自动从 config.yaml 加载默认值改动文件(11 files, +145 -47)
personal_assistant.py_default_model_config()改用ConfigFileManagercron_scheduler.py_default_model_config()manager.py_sync_settings_api_key();_load_from_storage不恢复 key;_save_provider不写 key;get_chat_model注入 config.yaml keyproviders.pyProviderUpdateRequest移除api_key字段openai_provider.pysession.pycreate_session不写 model_name;list/meta/config 从 config.yaml 读agent.pyget_model_config(fallback=None)自动读 config.yamlapi/index.tsSessionConfigUpdate移除model_nameTest plan
llm.model,不重启服务,发消息验证新模型立即生效~/.nimo/providers/builtin/*.json中的 api_key 字段,重启服务,验证不影响正常对话🤖 Generated with Claude Code