refactor: LoadEnv

This commit is contained in:
lilong.129
2025-03-31 14:54:58 +08:00
parent 379f0de4ea
commit 563015c55a
9 changed files with 260 additions and 284 deletions
-5
View File
@@ -53,11 +53,6 @@ const (
)
func WithLLMService(service LLMServiceType) AIServiceOption {
if err := checkEnvLLM(); err != nil {
log.Error().Err(err).Msg("check LLM env failed")
os.Exit(code.GetErrorCode(err))
}
return func(opts *AIServices) {
if service == LLMServiceTypeGPT4o {
var err error