config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicClient

type BasicClient struct {
	Name string
	Type string
}

type Client

type Client interface{}

type Config

type Config struct {
	Server   Server
	Database *Database
	Models   []Model
	Clients  []Client
}

func NewConfig

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

type Database

type Database struct {
	Driver string
	DSN    string
}

type Model

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

type OpenAI

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

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