Skip to content

Commit

Permalink
remove trailing slash for custom model url, fixes #172
Browse files Browse the repository at this point in the history
  • Loading branch information
danenania committed Oct 2, 2024
1 parent 7693757 commit 6b2dacb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/cli/cmd/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"plandex/lib"
"plandex/term"
"strconv"
"strings"

"github.com/fatih/color"
"github.com/olekukonko/tablewriter"
Expand Down Expand Up @@ -112,6 +113,9 @@ func createCustomModel(cmd *cobra.Command, args []string) {
term.OutputErrorAndExit("Error reading base URL: %v", err)
return
}

baseUrl = strings.TrimSuffix(baseUrl, "/")

model.BaseUrl = baseUrl
} else {
model.BaseUrl = shared.BaseUrlByProvider[model.Provider]
Expand Down

0 comments on commit 6b2dacb

Please sign in to comment.