feat: standardize storage configuration and enhance backward compatibility

- Updated the `KnowledgeBase` struct to rename `cos_config` to `storage_config` for consistency across the application.
- Implemented a custom `UnmarshalJSON` method to maintain backward compatibility with legacy responses that still use `cos_config`.
- Modified various frontend components to reflect the new `storage_config` naming, ensuring seamless integration with the updated backend structure.
- Enhanced Dockerfiles and service configurations to support the new storage engine setup.

This update improves the clarity of storage configurations and ensures compatibility with existing data structures.
This commit is contained in:
wizardchen
2026-02-28 17:39:59 +08:00
committed by lyingbug
parent 31755726a0
commit 393ebf9f92
13 changed files with 168 additions and 25 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export function createKnowledgeBase(data: {
enabled: boolean;
model_id?: string;
};
cos_config?: any;
storage_config?: any;
extract_config?: any;
faq_config?: { index_mode: string; question_index_mode?: string };
}) {