fix: 修复/api/v1/tenants/kv/storage-engine-config接口不返回华为云obs配置导致创建知识库弹窗存储引擎华为云OBS未正确显示不可用标识

fix: 修复租户default_provider为空时降级至local,而local未被允许时导致创建知识库报错: Storage provider is not allowed by STORAGE_ALLOW_LIST
This commit is contained in:
ShadowSmallBaby
2026-07-08 17:49:30 +08:00
committed by lyingbug
parent e3b7ad98c2
commit b3bb60f03c
4 changed files with 82 additions and 32 deletions
+2
View File
@@ -34,6 +34,7 @@ type ParserEngine struct {
// StorageEngineStatusItem describes one storage engine's availability
type StorageEngineStatusItem struct {
Name string `json:"name"`
Allowed bool `json:"allowed"`
Available bool `json:"available"`
Description string `json:"description"`
}
@@ -41,6 +42,7 @@ type StorageEngineStatusItem struct {
// StorageEngineStatusResponse is the response for storage engine status
type StorageEngineStatusResponse struct {
Engines []StorageEngineStatusItem `json:"engines"`
AllowedProviders []string `json:"allowed_providers"`
MinioEnvAvailable bool `json:"minio_env_available"`
}