summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-12 14:07:10 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-12 14:07:10 +0300
commit9edda1fecf4d0fc4dc9ad92e008a986b74f50c80 (patch)
treebcfe133ce83aced1ff71ac37a7471aa25f888b84 /tui.go
parent2e2e6e9f9cb87ab31fc7dc7e0e196ece884da4bd (diff)
Feat: llama.cpp model switch
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
}