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 GetMemoryDir ¶
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.
Click to show internal directories.
Click to hide internal directories.