feat: 增强VLM配置兼容性,支持新旧版本配置判断逻辑

This commit is contained in:
wizardchen
2025-12-03 11:56:54 +08:00
parent 6b21f93ae8
commit 313860bea4
3 changed files with 44 additions and 5 deletions
+1 -1
View File
@@ -1251,7 +1251,7 @@ func (h *InitializationHandler) buildConfigResponse(ctx context.Context, models
}
// 判断多模态是否启用:有VLM模型ID或有存储配置
hasMultimodal := ((kb.VLMConfig.Enabled && kb.VLMConfig.ModelID != "") ||
hasMultimodal := (kb.VLMConfig.IsEnabled() ||
kb.StorageConfig.SecretID != "" || kb.StorageConfig.BucketName != "")
if config["multimodal"] == nil {
config["multimodal"] = map[string]interface{}{