fixed glm panic

This commit is contained in:
Mazyar
2025-12-28 15:58:33 +03:30
parent f6bdcc6d7c
commit a95944d4c6
3 changed files with 35 additions and 13 deletions
+2 -1
View File
@@ -223,7 +223,8 @@ func InitGLMService(conf GLMConfig, log logger.Logger) *glm.SDK {
log.Error("Failed to initialize GLM SDK", map[string]interface{}{
"error": err.Error(),
})
panic(fmt.Sprintf("Failed to initialize GLM SDK: %v", err))
log.Warn("GLM service will be disabled, translation features will not be available", map[string]interface{}{})
return nil
}
log.Info("GLM SDK initialized successfully", map[string]interface{}{