Compare commits

..

4 Commits

Author SHA1 Message Date
7bfddaabce tui: add focus switching between input/messages view 2024-03-12 18:24:46 +00:00
a5f39f7944 tui: removed confirm before send, dynamic footer
footer now rendered based on model data, instead of being set to a fixed
string
2024-03-12 18:24:46 +00:00
3b71f08d19 tui: use ctx chroma highlighter 2024-03-12 18:24:46 +00:00
b803ea7a52 Add initial TUI 2024-03-12 18:24:46 +00:00

View File

@ -5,7 +5,6 @@ package tui
// - binding to open selected message/input in $EDITOR // - binding to open selected message/input in $EDITOR
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -280,7 +279,7 @@ func (m *model) promptLLM() tea.Cmd {
var apiReplies []models.Message var apiReplies []models.Message
resp, _ := completionProvider.CreateChatCompletionStream( resp, _ := completionProvider.CreateChatCompletionStream(
context.Background(), requestParams, m.messages, &apiReplies, m.replyChan, requestParams, m.messages, &apiReplies, m.replyChan,
) )
return msgResponseEnd(resp) return msgResponseEnd(resp)