diff options
| author | Grail Finder <wohilas@gmail.com> | 2025-12-12 14:07:10 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2025-12-12 14:07:10 +0300 |
| commit | 9edda1fecf4d0fc4dc9ad92e008a986b74f50c80 (patch) | |
| tree | bcfe133ce83aced1ff71ac37a7471aa25f888b84 /tui.go | |
| parent | 2e2e6e9f9cb87ab31fc7dc7e0e196ece884da4bd (diff) | |
Feat: llama.cpp model switch
Diffstat (limited to 'tui.go')
| -rw-r--r-- | tui.go | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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 } |
