Skip to content

Commit 249bb42

Browse files
tmchowclaude
andcommitted
fix: lowercase before stripping defaults for mixed-case model names
Apply strings.ToLower before stripDefaultsFromModelName so that case-sensitive prefix/suffix matching (e.g. "ai/", ":latest") works correctly on mixed-case backend responses like "AI/Gemma:Latest". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fa50f26 commit 249bb42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/cli/commands/ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func psTable(ps []desktop.BackendStatus) string {
3939
if strings.HasPrefix(modelName, "sha256:") {
4040
modelName = modelName[7:19]
4141
} else {
42-
modelName = strings.ToLower(stripDefaultsFromModelName(modelName))
42+
modelName = stripDefaultsFromModelName(strings.ToLower(modelName))
4343
}
4444

4545
table.Append([]string{

0 commit comments

Comments
 (0)