diff --git a/config/config.go b/config/config.go index 387312d..a002589 100644 --- a/config/config.go +++ b/config/config.go @@ -103,7 +103,12 @@ func GetOpenAiApiKey() *string { } func getEnv(key string) *string { - value := os.Getenv(strings.ToUpper(key)) + value := os.Getenv(key) + + if len(value) == 0 { + value = os.Getenv(strings.ToUpper(key)) + } + if config == nil { return nil }