Skip to content

Commit

Permalink
same fix but use shared.Compact on both the model name and m.ModelNam…
Browse files Browse the repository at this point in the history
…e in the comparison, fixes #75
  • Loading branch information
danenania committed Apr 14, 2024
1 parent 573f831 commit 4bb8ab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/cli/cmd/set_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down Expand Up @@ -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 = &m
break
}
Expand Down
1 change: 1 addition & 0 deletions releases/cli/versions/0.8.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix for `set-model` command argument parsing (https://github.com/plandex-ai/plandex/issues/75)

0 comments on commit 4bb8ab1

Please sign in to comment.