minor
This commit is contained in:
parent
25ed7d3f8d
commit
1312bf10c0
1 changed files with 2 additions and 4 deletions
6
tui.go
6
tui.go
|
|
@ -69,6 +69,7 @@ func initialModel(config *Config, query string, verbose bool) model {
|
|||
|
||||
l := list.New([]list.Item{}, delegate, width, 20)
|
||||
l.SetShowTitle(false)
|
||||
l.SetShowHelp(false)
|
||||
l.SetShowStatusBar(false)
|
||||
l.SetFilteringEnabled(false)
|
||||
l.Title = "" // Set empty title
|
||||
|
|
@ -85,7 +86,7 @@ func initialModel(config *Config, query string, verbose bool) model {
|
|||
query: query,
|
||||
verbose: verbose,
|
||||
loading: true,
|
||||
status: "Initializing...",
|
||||
status: "Querying",
|
||||
spinner: sp,
|
||||
list: l,
|
||||
}
|
||||
|
|
@ -114,10 +115,7 @@ func (m model) Init() tea.Cmd {
|
|||
return tea.Batch(
|
||||
m.spinner.Tick,
|
||||
func() tea.Msg {
|
||||
m.status = "Building prompt..."
|
||||
prompt := buildPrompt(m.config, m.query)
|
||||
|
||||
m.status = "Querying LLM..."
|
||||
commands, err := queryLLM(m.config, prompt, m.verbose)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue