From e8b791d3b419720887c35d0c4022682606900585 Mon Sep 17 00:00:00 2001 From: Cytown Date: Thu, 12 Mar 2026 11:32:12 +0800 Subject: [PATCH] fix for comment --- cmd/picoclaw/internal/model/command.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/picoclaw/internal/model/command.go b/cmd/picoclaw/internal/model/command.go index 771cd4bbb..cad106fd5 100644 --- a/cmd/picoclaw/internal/model/command.go +++ b/cmd/picoclaw/internal/model/command.go @@ -24,7 +24,11 @@ If a model name is provided, sets it as the default model. Examples: picoclaw model # Show current default model 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), RunE: func(cmd *cobra.Command, args []string) error { configPath := internal.GetConfigPath() @@ -101,7 +105,7 @@ func setDefaultModel(configPath string, cfg *config.Config, modelName string) er } 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