summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/tui.go b/tui.go
index b907c5b..383d680 100644
--- a/tui.go
+++ b/tui.go
@@ -961,11 +961,16 @@ func init() {
}
updateStatusLine()
} else {
- // For non-OpenRouter APIs, use the old logic
- go func() {
- fetchLCPModelName() // blocks
- updateStatusLine()
- }()
+ if len(LocalModels) > 0 {
+ currentLocalModelIndex = (currentLocalModelIndex + 1) % len(LocalModels)
+ chatBody.Model = LocalModels[currentLocalModelIndex]
+ }
+ updateStatusLine()
+ // // For non-OpenRouter APIs, use the old logic
+ // go func() {
+ // fetchLCPModelName() // blocks
+ // updateStatusLine()
+ // }()
}
return nil
}