Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
same fix but use shared.Compact on both the model name and m.ModelName in the comparison, fixes #75
Dane Schneiderb61dcdd2451b
diff --git a/app/cli/cmd/set_model.go b/app/cli/cmd/set_model.goindex b9e7697d..201ffb79 100644--- a/app/cli/cmd/set_model.go+++ b/app/cli/cmd/set_model.go@@ -125,7 +125,7 @@ func modelsSet(cmd *cobra.Command, args []string) {if len(args) > 1 {if role != "" {- propertyCompact = args[1]+ propertyCompact = shared.Compact(args[1])} else {value = args[1]}@@ -189,7 +189,7 @@ func modelsSet(cmd *cobra.Command, args []string) {if role != "" {if !(propertyCompact == "temperature" || propertyCompact == "topp") {for _, m := range shared.AvailableModels {- if propertyCompact == m.ModelName {+ if propertyCompact == shared.Compact(m.ModelName) {selectedModel = &mbreak}diff --git a/releases/cli/versions/0.8.3.md b/releases/cli/versions/0.8.3.mdnew file mode 100644index 00000000..bded60a1--- /dev/null+++ b/releases/cli/versions/0.8.3.md@@ -0,0 +1 @@+- Fix for `set-model` command argument parsing (https://github.com/plandex-ai/plandex/issues/75)\ No newline at end of file