summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-02-28 16:16:11 +0300
committerGrail Finder <wohilas@gmail.com>2025-02-28 16:16:11 +0300
commitfd1ac24d7533b97a3c67a654606441c25c4c5a8c (patch)
tree9c4170555d74b4a219f86d091a39668ff8a2e6a1 /tui.go
parent49409f5d94437fbd8e5ca059c6c71998408c8efa (diff)
Feat: add deepseek integration [WIP] (only completion works)
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/tui.go b/tui.go
index 5e64e5e..30fc241 100644
--- a/tui.go
+++ b/tui.go
@@ -136,7 +136,7 @@ func colorText() {
}
func updateStatusLine() {
- position.SetText(fmt.Sprintf(indexLine, botRespMode, cfg.AssistantRole, activeChatName, cfg.RAGEnabled, cfg.ToolUse, currentModel, cfg.CurrentAPI, cfg.ThinkUse, logLevel.Level()))
+ position.SetText(fmt.Sprintf(indexLine, botRespMode, cfg.AssistantRole, activeChatName, cfg.RAGEnabled, cfg.ToolUse, chatBody.Model, cfg.CurrentAPI, cfg.ThinkUse, logLevel.Level()))
}
func initSysCards() ([]string, error) {
@@ -202,6 +202,12 @@ func makePropsForm(props map[string]float32) *tview.Form {
}).AddDropDown("Set log level (Enter): ", []string{"Debug", "Info", "Warn"}, 1,
func(option string, optionIndex int) {
setLogLevel(option)
+ }).AddDropDown("Select an api: ", cfg.ApiLinks, 1,
+ func(option string, optionIndex int) {
+ cfg.CurrentAPI = option
+ }).AddDropDown("Select a model: ", []string{chatBody.Model, "deepseek-chat", "deepseek-reasoner"}, 0,
+ func(option string, optionIndex int) {
+ chatBody.Model = option
}).
AddButton("Quit", func() {
pages.RemovePage(propsPage)
@@ -600,7 +606,7 @@ func init() {
}
cfg.APIMap[newAPI] = prevAPI
cfg.CurrentAPI = newAPI
- initChunkParser()
+ choseChunkParser()
updateStatusLine()
return nil
}