Feat: llama.cpp model switch

This commit is contained in:
Grail Finder
2025-12-12 14:07:10 +03:00
parent 2e2e6e9f9c
commit 9edda1fecf
5 changed files with 105 additions and 50 deletions

15
tui.go
View File

@@ -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
}