constant

package
v0.260313.0-preview Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default authentication tokens
	DefaultUserToken         = "tingly-box-user-token"
	DefaultModelToken        = "tingly-box-model-token"
	DefaultVirtualModelToken = "tingly-virtual-model-token"

	// Default mode name
	DefaultModeName = "tingly"
)
View Source
const (
	LogDirName = "log"

	// DebugLogFileName is the name of the debug log file
	DebugLogFileName = "bad_requests.log"

	// DefaultRequestTimeout is the default timeout for HTTP requests in seconds
	DefaultRequestTimeout = 1800
	// DefaultMaxTimeout in seconds
	DefaultMaxTimeout = 30 * 60
	// ModelFetchTimeout is the timeout for fetching models from provider API in seconds
	ModelFetchTimeout = 30

	// DefaultMaxTokens is the default max_tokens value for API requests
	DefaultMaxTokens = 8192
)
View Source
const ConfigDirName = ".tingly-box"
View Source
const DBDirName = "db"
View Source
const DBFileName = "tingly.db" // Unified SQLite database file
View Source
const DefaultRequestThreshold = int64(10) // Default request threshold for round-robin and hybrid tactics

Load balancing threshold defaults

View Source
const DefaultTokenThreshold = int64(10000) // Default token threshold for token-based and hybrid tactics
View Source
const MemoryDirName = "memory"

Variables

This section is empty.

Functions

func GetDBDir

func GetDBDir(baseDir string) string

func GetDBFile

func GetDBFile(baseDir string) string

func GetLogDir

func GetLogDir(baseDir string) string

GetLogDir returns the log directory path

func GetMemoryDir

func GetMemoryDir(baseDir string) string

GetMemoryDir returns the memory directory path

func GetTinglyConfDir

func GetTinglyConfDir() string

GetTinglyConfDir returns the config directory path (default: ~/.tingly-box)

Types

This section is empty.

Jump to

Keyboard shortcuts

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