Documentation ¶
Index ¶
- Variables
- func CenterString(str string, width int, color lipgloss.Color) string
- func DecodeGob(r io.Reader, messages *[]ChatMessage) error
- func EncodeGob(w io.Writer, messages *[]ChatMessage) error
- func GenerateChatID() string
- func NewChatSettingsForm() (client.Chat, error)
- type Chat
- type ChatMessage
- type ContentType
- type FinishedStreaming
- type StreamChunk
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var DisabledHighlightStyle = lipgloss.NewStyle(). Foreground(gray). Bold(true)
View Source
var HighlightActiveStyle = lipgloss.NewStyle(). Background(teal). Foreground(black). Bold(true). Padding(0, 1)
View Source
var HighlightForegroundStyle = lipgloss.NewStyle(). Foreground(purple). Bold(true)
View Source
var HighlightStyle = lipgloss.NewStyle(). Background(purple). Bold(true). Padding(0, 1)
View Source
var RoundedBorder = lipgloss.NewStyle(). BorderStyle(lipgloss.RoundedBorder())
Functions ¶
func GenerateChatID ¶
func GenerateChatID() string
func NewChatSettingsForm ¶
Types ¶
type Chat ¶
type Chat struct { Glamour *glamour.TermRenderer ChatHistory []ChatMessage ChatSettings client.Chat // contains filtered or unexported fields }
func (*Chat) ImagePickerView ¶
type ChatMessage ¶
type ContentType ¶
type ContentType string
type FinishedStreaming ¶
type FinishedStreaming bool
type StreamChunk ¶
type StreamChunk string
Click to show internal directories.
Click to hide internal directories.