config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIVersion string   `yaml:"apiVersion"`
	Debug      bool     `yaml:"debug,omitempty"`
	Runtime    string   `yaml:"runtime,omitempty"`
	Backends   []string `yaml:"backends,omitempty"`
	Models     []Model  `yaml:"models"`
	Config     string   `yaml:"config,omitempty"`
}

func NewFromBytes

func NewFromBytes(b []byte) (*Config, error)

type Model

type Model struct {
	Name            string           `yaml:"name"`
	Source          string           `yaml:"source"`
	SHA256          string           `yaml:"sha256,omitempty"`
	PromptTemplates []PromptTemplate `yaml:"promptTemplates,omitempty"`
}

type PromptTemplate

type PromptTemplate struct {
	Name     string `yaml:"name,omitempty"`
	Template string `yaml:"template,omitempty"`
}

Jump to

Keyboard shortcuts

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