fix for comment
This commit is contained in:
parent
53f6b90b15
commit
e8b791d3b4
1 changed files with 6 additions and 2 deletions
|
|
@ -24,7 +24,11 @@ If a model name is provided, sets it as the default model.
|
||||||
Examples:
|
Examples:
|
||||||
picoclaw model # Show current default model
|
picoclaw model # Show current default model
|
||||||
picoclaw model gpt-5.2 # Set gpt-5.2 as default
|
picoclaw model gpt-5.2 # Set gpt-5.2 as default
|
||||||
picoclaw model claude-sonnet-4.6 # Set claude-sonnet-4.6 as default`,
|
picoclaw model claude-sonnet-4.6 # Set claude-sonnet-4.6 as default
|
||||||
|
picoclaw model local-model # Set local VLLM server as default
|
||||||
|
|
||||||
|
Note: 'local-model' is a special value for using a local VLLM server
|
||||||
|
(running at localhost:8000 by default) which does not require an API key.`,
|
||||||
Args: cobra.MaximumNArgs(1),
|
Args: cobra.MaximumNArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
configPath := internal.GetConfigPath()
|
configPath := internal.GetConfigPath()
|
||||||
|
|
@ -101,7 +105,7 @@ func setDefaultModel(configPath string, cfg *config.Config, modelName string) er
|
||||||
}
|
}
|
||||||
|
|
||||||
if !modelFound && modelName != LocalModel {
|
if !modelFound && modelName != LocalModel {
|
||||||
return fmt.Errorf("can not found model '%s' in config", modelName)
|
return fmt.Errorf("cannot found model '%s' in config", modelName)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the default model
|
// Update the default model
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue