feat: 增强VLM配置兼容性,支持新旧版本配置判断逻辑
This commit is contained in:
@@ -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{}{
|
||||
|
||||
Reference in New Issue
Block a user