added test
This commit is contained in:
@@ -74,7 +74,7 @@ func getCfg(path string) Cfg {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if cfg.APIKey == "" { cfg.APIKey = os.Getenv("OPENAI_API_KEY") }
|
if (cfg.APIKey == "" || cfg.APIKey == "-") && os.Getenv("OPENAI_API_KEY") != "" { cfg.APIKey = os.Getenv("OPENAI_API_KEY") }
|
||||||
return cfg
|
return cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1272
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user