Versions in this module Expand all Collapse all v0 v0.0.2 Nov 15, 2024 Changes in this version + func Cmdize[T any](t T) tea.Cmd + func ConvertTerminalTextToImage(terminalText string, convertConfig *ansitoimage.Config) ([]byte, error) + func DefaultHost() string + func DefaultModel() string + func DefaultPrompt() string + func DefaultSystemPrompt() string + func FetchModelList(ollamaHost string, id int64) tea.Msg + func GetNextModelChooserID() int64 + type ChatPanelModel struct + Height int + InputHeight int + InputOnTop bool + Session *Session + Width int + func NewChatPanel(session Session) ChatPanelModel + func (m ChatPanelModel) GetInputHeight() int + func (m ChatPanelModel) GetPlaceholder() string + func (m ChatPanelModel) Init() tea.Cmd + func (m ChatPanelModel) SetHeight(height int) ChatPanelModel + func (m ChatPanelModel) SetInputHeight(inputHeight int) ChatPanelModel + func (m ChatPanelModel) SetPlaceholder(s string) ChatPanelModel + func (m ChatPanelModel) SetWidth(w int) ChatPanelModel + func (m ChatPanelModel) Update(msg tea.Msg) (ChatPanelModel, tea.Cmd) + func (m ChatPanelModel) View() string + type FetchModelListErrorMsg struct + Error error + ID int64 + OllamaHost string + type FetchModelListResponseMsg struct + ID int64 + Models []ListModelResponse + OllamaHost string + type GenerateDoneMsg struct + Context []int + CreatedAt time.Time + DoneReason string + ID int64 + Response string + type GenerateResponseMsg struct + CreatedAt time.Time + ID int64 + Response string + type ImageData = ollama.ImageData + type ListModelResponse = ollama.ListModelResponse + type ModelChooser struct + MenuPrompt string + Waiting string + func NewModelChooser(ollamaHost string) ModelChooser + func (m ModelChooser) GetHost() string + func (m ModelChooser) GetLastError() error + func (m ModelChooser) GetSelectedModel() *ollama.ListModelResponse + func (m ModelChooser) GetStyles() list.Styles + func (m ModelChooser) ID() int64 + func (m ModelChooser) Init() tea.Cmd + func (m ModelChooser) IsFetching() bool + func (m ModelChooser) SetStyles(styles list.Styles) ModelChooser + func (m ModelChooser) Update(msg tea.Msg) (ModelChooser, tea.Cmd) + func (m ModelChooser) View() string + type ModelChooserAbortedMsg struct + Error error + ID int64 + type ModelChooserSelectedMsg struct + ID int64 + OllamaHost string + Selection ollama.ListModelResponse + type Session struct + Context []int + Host string + Images []ImageData + Model string + Options map[string]interface{} + Prompt string + Suffix string + System string + Template string + func NewSession() Session + func (m *Session) Init() tea.Cmd + func (m *Session) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *Session) View() string + func (s *Session) ClearError() + func (s *Session) ClearResponse() + func (s *Session) Error() error + func (s *Session) ID() int64 + func (s *Session) IsGenerating() bool + func (s *Session) Response() string + func (s *Session) StartGenerateMsg() tea.Msg + type StartGenerateMsg struct + ID int64 + type StopGenerateMsg struct + ID int64