Enha: update config
This commit is contained in:
@@ -19,7 +19,7 @@ AssistantRole = "assistant"
|
||||
SysDir = "sysprompts"
|
||||
ChunkLimit = 100000
|
||||
AutoScrollEnabled = true
|
||||
# AutoCleanToolCallsFromCtx = false
|
||||
AutoCleanToolCallsFromCtx = false
|
||||
# rag settings
|
||||
RAGBatchSize = 1
|
||||
RAGWordLimit = 80
|
||||
@@ -39,9 +39,12 @@ WhisperBinaryPath = "./batteries/whisper.cpp/build/bin/whisper-cli" # Path to wh
|
||||
WhisperModelPath = "./batteries/whisper.cpp/ggml-large-v3-turbo-q5_0.bin" # Path to whisper model file (for WHISPER_BINARY mode)
|
||||
STT_LANG = "en" # Language for speech recognition (for WHISPER_BINARY mode)
|
||||
STT_SR = 16000 # Sample rate for audio recording
|
||||
#
|
||||
DBPATH = "gflt.db"
|
||||
FilePickerDir = "." # Directory where file picker should start
|
||||
FilePickerExts = "png,jpg,jpeg,gif,webp" # Comma-separated list of allowed file extensions for file picker
|
||||
EnableMouse = false # Enable mouse support in the UI
|
||||
CharSpecificContextEnabled = false
|
||||
# character specific context
|
||||
CharSpecificContextEnabled = true
|
||||
CharSpecificContextTag = "__known_to_chars__"
|
||||
AutoTurn = true
|
||||
|
||||
@@ -27,6 +27,10 @@ type Config struct {
|
||||
WriteNextMsgAsCompletionAgent string
|
||||
SkipLLMResp bool
|
||||
AutoCleanToolCallsFromCtx bool `toml:"AutoCleanToolCallsFromCtx"`
|
||||
DBPATH string `toml:"DBPATH"`
|
||||
FilePickerDir string `toml:"FilePickerDir"`
|
||||
FilePickerExts string `toml:"FilePickerExts"`
|
||||
EnableMouse bool `toml:"EnableMouse"`
|
||||
// embeddings
|
||||
RAGEnabled bool `toml:"RAGEnabled"`
|
||||
EmbedURL string `toml:"EmbedURL"`
|
||||
@@ -61,13 +65,10 @@ type Config struct {
|
||||
WhisperBinaryPath string `toml:"WhisperBinaryPath"`
|
||||
WhisperModelPath string `toml:"WhisperModelPath"`
|
||||
STT_LANG string `toml:"STT_LANG"`
|
||||
DBPATH string `toml:"DBPATH"`
|
||||
FilePickerDir string `toml:"FilePickerDir"`
|
||||
FilePickerExts string `toml:"FilePickerExts"`
|
||||
EnableMouse bool `toml:"EnableMouse"`
|
||||
// character spefic contetx
|
||||
CharSpecificContextEnabled bool `toml:"CharSpecificContextEnabled"`
|
||||
CharSpecificContextTag string `toml:"CharSpecificContextTag"`
|
||||
AutoTurn bool
|
||||
AutoTurn bool `toml:"AutoTurn"`
|
||||
}
|
||||
|
||||
func LoadConfig(fn string) (*Config, error) {
|
||||
|
||||
@@ -140,6 +140,9 @@ func makePropsTable(props map[string]float32) *tview.Table {
|
||||
addCheckboxRow("Auto turn (for cards with many chars)", cfg.AutoTurn, func(checked bool) {
|
||||
cfg.AutoTurn = checked
|
||||
})
|
||||
addCheckboxRow("Char specific context", cfg.CharSpecificContextEnabled, func(checked bool) {
|
||||
cfg.CharSpecificContextEnabled = checked
|
||||
})
|
||||
// Add dropdowns
|
||||
logLevels := []string{"Debug", "Info", "Warn"}
|
||||
addListPopupRow("Set log level", logLevels, GetLogLevel(), func(option string) {
|
||||
|
||||
Reference in New Issue
Block a user