added test

This commit is contained in:
Luxferre
2026-08-11 14:33:45 +03:00
parent 0cce103b37
commit c74cdd8f33
2 changed files with 1273 additions and 1 deletions
+1 -1
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff