Skip to content

Commit b3b2da4

Browse files
committed
Dont show model index
1 parent ed73713 commit b3b2da4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/repl/repl.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,19 +2180,19 @@ func (r *REPL) listModels() (string, error) {
21802180
currentModel := r.getCurrentModelForProvider()
21812181

21822182
// Format and display each model
2183-
for i, model := range models {
2183+
for _, model := range models {
21842184
// Add indicator for current model
21852185
current := ""
21862186
if model.ID == currentModel {
21872187
current = " (current)"
21882188
}
21892189

21902190
// Display model with description if available
2191+
fmt.Fprintf(&output, "- %s%s", model.ID, current)
21912192
if model.Description != "" {
2192-
fmt.Fprintf(&output, "[%d] %s%s - %s\r\n", i+1, model.ID, current, model.Description)
2193-
} else {
2194-
fmt.Fprintf(&output, "[%d] %s%s\r\n", i+1, model.ID, current)
2193+
fmt.Fprintf(&output, " - %s", model.Description)
21952194
}
2195+
output.WriteString("\r\n")
21962196
}
21972197

21982198
fmt.Fprintf(&output, "Total models: %d\r\n", len(models))

0 commit comments

Comments
 (0)