Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatCommand ¶
func ServeCommand ¶
Types ¶
type ChatRequest ¶
type ChatRequest struct {
SessionID string `json:"session_id,omitempty"`
Message string `json:"message"`
// Provider config (only used when creating a new session)
Provider string `json:"provider,omitempty"`
Model string `json:"model,omitempty"`
APIKey string `json:"api_key,omitempty"`
BaseURL string `json:"base_url,omitempty"`
}
type ChatResponse ¶
type CyclingSpinner ¶
type CyclingSpinner struct {
// contains filtered or unexported fields
}
CyclingSpinner creates an animated spinner similar to charmbracelet/mods
func NewCyclingSpinner ¶
func NewCyclingSpinner(label string) *CyclingSpinner
NewCyclingSpinner creates a new cycling spinner
func (*CyclingSpinner) Update ¶
func (s *CyclingSpinner) Update(label string)
Update changes the spinner label
type ProviderConfig ¶
type ProviderConfig = store.ProviderConfig
ProviderConfig is an alias to store.ProviderConfig for backwards compatibility
type ServerConfig ¶
type ServerConfig struct {
Addr string
Workdir string
Provider string
Model string
APIKey string
BaseURL string
}
ServerConfig holds the server configuration
type SessionResponse ¶
Click to show internal directories.
Click to hide internal directories.