From 9edda1fecf4d0fc4dc9ad92e008a986b74f50c80 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 12 Dec 2025 14:07:10 +0300 Subject: Feat: llama.cpp model switch --- tui.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'tui.go') 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 } -- cgit v1.2.3