backend

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 NewApp

func NewApp() *App

NewApp creates a new App application struct

func (*App) DownloadModel

func (a *App) DownloadModel(url string, name string) string

DownloadModel triggers a download and emits events for progress

func (*App) ListModels

func (a *App) ListModels() []models.ModelInfo

ListModels returns the available models

func (*App) LoadModelOnly

func (a *App) LoadModelOnly(modelFile string) string

LoadModelOnly starts the engine without chatting

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context)

shutdown is called at termination

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

func (*App) Startup

func (a *App) Startup(ctx context.Context)

startup is called at application startup

func (*App) StopChat

func (a *App) StopChat()

StopChat kills the current process

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL