llama

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

README

go-llama

Go bindings for llama.cpp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error int

Error represents an error code

const (
	ErrSuccess Error = iota
	ErrInvalidContext
	ErrInvalidModel
	ErrInvalidArgument
	ErrIndexOutOfRange
	ErrKeyNotFound
	ErrTypeMismatch
	ErrInvalidToken
	ErrInvalidBatch
	ErrBatchFull
	ErrNoKVSlot
	ErrOpenFailed
	ErrNotFound
	ErrModelNotLoaded
	ErrNotEmbeddingModel
)

func (Error) Error

func (e Error) Error() string

func (Error) String

func (e Error) String() string

func (Error) With

func (e Error) With(msg string) error

With returns a new error wrapping this error with additional context

func (Error) Withf

func (e Error) Withf(format string, args ...any) error

Withf returns a new error wrapping this error with formatted context

Directories

Path Synopsis
cmd
gollama command
pkg
llamacpp/httpclient
Package httpclient provides a typed Go client for consuming the go-llama REST API.
Package httpclient provides a typed Go client for consuming the go-llama REST API.
sys
pkg-config command

Jump to

Keyboard shortcuts

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