Compare commits

..

4 Commits

Author SHA1 Message Date
3f7f34812f tui: add focus switching between input/messages view 2024-03-12 18:26:03 +00:00
98e92d1ff4 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:26:03 +00:00
e23dc17555 tui: use ctx chroma highlighter 2024-03-12 18:26:03 +00:00
e0cc97e177 Add initial TUI 2024-03-12 18:26:03 +00:00

View File

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