config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicProvider added in v0.3.0

type BasicProvider struct {
	Name string
	Type string
}

type Common added in v0.1.0

type Common struct {
	DataDir string `mapstructure:"data_dir"`
}

type Config

type Config struct {
	Common    Common
	Server    Server
	Database  *Database
	Models    []Model
	Providers []Provider
	Sources   []map[string]any

	// internal use only, create example tables/datasets if true
	ShouldCreateExampleTable bool
}

func NewConfig

func NewConfig(name string) (config *Config, err error)

type Database

type Database struct {
	Driver string
	DSN    string
}

type Gemini added in v0.1.7

type Gemini struct {
	Name string
	Type string
	Key  string
}

type Model

type Model struct {
	Default   bool
	Model     string
	MaxTokens int64 `mapstructure:"max_tokens"`
	Alias     string
	Provider  string
	RPM       int
	Image     bool
}

type OpenAI

type OpenAI struct {
	Name    string
	Type    string
	Key     string
	BaseURL string `mapstructure:"base_url"`
}

type Provider added in v0.3.0

type Provider any

type Server added in v0.0.2

type Server struct {
	Address string
}

Jump to

Keyboard shortcuts

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