Documentation
¶
Index ¶
- type App
- func (a *App) DownloadModel(url string, name string) string
- func (a *App) ListModels() []models.ModelInfo
- func (a *App) LoadModelOnly(modelFile string) string
- func (a *App) Shutdown(ctx context.Context)
- func (a *App) StartChat(prompt string, modelFile string, temp float64, system string, topP float64, ...) string
- func (a *App) Startup(ctx context.Context)
- func (a *App) StopChat()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App struct
func (*App) DownloadModel ¶
DownloadModel triggers a download and emits events for progress
func (*App) ListModels ¶
ListModels returns the available models
func (*App) LoadModelOnly ¶
LoadModelOnly starts the engine without chatting
func (*App) StartChat ¶
func (a *App) StartChat(prompt string, modelFile string, temp float64, system string, topP float64, topK int, maxTokens int) string
StartChat starts the inference and emits tokens via events StartChat starts the inference
Click to show internal directories.
Click to hide internal directories.