diff options
| author | Grail Finder <wohilas@gmail.com> | 2025-11-20 23:25:50 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2025-11-20 23:25:50 +0300 |
| commit | e8413ce613a71b6ec0b62b928a1179738655b49b (patch) | |
| tree | f9bccb94b894c44599ccd8fab8d2eb717422f702 /config | |
| parent | 6e73513aacf1e499fccb32ee0b09d90c22341214 (diff) | |
Enha: extentions for filepicker
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index ff74089..499c84f 100644 --- a/config/config.go +++ b/config/config.go @@ -65,6 +65,7 @@ type Config struct { STT_LANG string `toml:"STT_LANG"` DBPATH string `toml:"DBPATH"` FilePickerDir string `toml:"FilePickerDir"` + FilePickerExts string `toml:"FilePickerExts"` } func LoadConfigOrDefault(fn string) *Config { @@ -101,6 +102,7 @@ func LoadConfigOrDefault(fn string) *Config { config.FetchModelNameAPI = "http://localhost:8080/v1/models" config.STT_SR = 16000 config.FilePickerDir = "." // Default to current directory + config.FilePickerExts = "png,jpg,jpeg,gif,webp" // Default allowed extensions } config.CurrentAPI = config.ChatAPI config.APIMap = map[string]string{ |
