refactor(config): rename model field to model_name#677
Merged
yinwm merged 3 commits intosipeed:mainfrom Feb 24, 2026
Merged
Conversation
The configuration field for specifying the model has been renamed from "model" to "model_name" for better clarity and consistency with the model_list configuration. A GetModelName() accessor method has been added to maintain backward compatibility. Existing configurations using the old "model" field will continue to work correctly. This change affects: - Configuration structure (AgentDefaults struct) - All references across the codebase - Documentation in all language variants - Example configuration files
xiaket
approved these changes
Feb 23, 2026
Collaborator
xiaket
left a comment
There was a problem hiding this comment.
LGTM, please fix the linting issue ;)
hyperwd
pushed a commit
to hyperwd/picoclaw
that referenced
this pull request
Mar 5, 2026
refactor(config): rename model field to model_name
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
modelfield tomodel_nameinAgentDefaultsstruct for better clarityGetModelName()accessor method for backward compatibilityDetails
The configuration field for specifying the model has been renamed from "model" to "model_name" for better clarity and consistency with the model_list configuration.
A
GetModelName()accessor method has been added to maintain backward compatibility. Existing configurations using the old "model" field will continue to work correctly.Files Changed
pkg/config/config.go- AddedModelNamefield andGetModelName()methodGetModelName()Test plan
🤖 Generated with Claude Code