Feat: two agent types; WebAgentB impl

This commit is contained in:
Grail Finder
2025-12-19 11:06:22 +03:00
parent 5f852418d8
commit 67ea1aef0d
8 changed files with 101 additions and 185 deletions

30
tui.go
View File

@@ -18,21 +18,21 @@ import (
)
var (
app *tview.Application
pages *tview.Pages
textArea *tview.TextArea
editArea *tview.TextArea
textView *tview.TextView
app *tview.Application
pages *tview.Pages
textArea *tview.TextArea
editArea *tview.TextArea
textView *tview.TextView
statusLineWidget *tview.TextView
helpView *tview.TextView
flex *tview.Flex
imgView *tview.Image
defaultImage = "sysprompts/llama.png"
indexPickWindow *tview.InputField
renameWindow *tview.InputField
roleEditWindow *tview.InputField
fullscreenMode bool
positionVisible bool = true
helpView *tview.TextView
flex *tview.Flex
imgView *tview.Image
defaultImage = "sysprompts/llama.png"
indexPickWindow *tview.InputField
renameWindow *tview.InputField
roleEditWindow *tview.InputField
fullscreenMode bool
positionVisible bool = true
// pages
historyPage = "historyPage"
agentPage = "agentPage"
@@ -984,12 +984,14 @@ func init() {
if len(ORFreeModels) > 0 {
currentORModelIndex = (currentORModelIndex + 1) % len(ORFreeModels)
chatBody.Model = ORFreeModels[currentORModelIndex]
cfg.CurrentModel = chatBody.Model
}
updateStatusLine()
} else {
if len(LocalModels) > 0 {
currentLocalModelIndex = (currentLocalModelIndex + 1) % len(LocalModels)
chatBody.Model = LocalModels[currentLocalModelIndex]
cfg.CurrentModel = chatBody.Model
}
updateStatusLine()
// // For non-OpenRouter APIs, use the old logic