ollama

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
}

Manager manages the Ollama service.

func NewManager

func NewManager() *Manager

NewManager returns a new Manager.

func (*Manager) CreateNewModel

func (m *Manager) CreateNewModel(modelName string, spec *ModelSpec) error

CreateNewModel creates a new model with the given name and spec.

func (*Manager) Run

func (m *Manager) Run(port int) error

type ModelSpec

type ModelSpec struct {
	BaseModel   string
	AdapterPath string
}

ModelSpec is the specification for a new model.

Jump to

Keyboard shortcuts

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