diff --git a/lib/config.go b/lib/config.go index 6a3d4c1..893b357 100644 --- a/lib/config.go +++ b/lib/config.go @@ -126,7 +126,7 @@ func init() { viperCfg.SetConfigName("config") viperCfg.SetConfigType("yaml") - if os.Getenv("NONVIPER_CONFIG") != "true" { + if strings.ToLower(os.Getenv("NONVIPER_CONFIG")) != "true" { configDir, err := findConfigPath() if err != nil { print(os.Getenv("NONVIPER_CONFIG")) @@ -137,7 +137,7 @@ func init() { } viperCfg.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) viperCfg.SetDefault("providers.openai.base_url", "https://api.openai.com/v1") - if os.Getenv("NONVIPER_CONFIG") != "true" { + if strings.ToLower(os.Getenv("NONVIPER_CONFIG")) != "true" { err := viperCfg.ReadInConfig() if err != nil { panic(err)