parser

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 19 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrModelNotFound = errors.New("no Modelfile or safetensors files found")

Functions

This section is empty.

Types

type Command

type Command struct {
	Name string
	Args string
}

func (Command) String added in v0.1.39

func (c Command) String() string

type Modelfile added in v0.5.5

type Modelfile struct {
	Commands []Command
}

func ParseFile added in v0.1.39

func ParseFile(r io.Reader) (*Modelfile, error)

func (Modelfile) CreateRequest added in v0.5.5

func (f Modelfile) CreateRequest(relativeDir string) (*api.CreateRequest, error)

CreateRequest creates a new *api.CreateRequest from an existing Modelfile

func (Modelfile) String added in v0.5.5

func (f Modelfile) String() string

type ParserError added in v0.4.2

type ParserError struct {
	LineNumber int
	Msg        string
}

func (*ParserError) Error added in v0.4.2

func (e *ParserError) Error() string

Jump to

Keyboard shortcuts

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