feat: Update VLM configuration in knowledge base and API documentation

- Replaced `vlm_model_id` with a structured `vlm_config` object in knowledge base configurations, including `enabled` flag and `model_id`.
- Updated API documentation to reflect changes in VLM configuration structure.
- Enhanced frontend interfaces to accommodate new VLM configuration format.
- Improved localization for new features related to knowledge graph and multimodal capabilities.
This commit is contained in:
wizardchen
2025-11-20 20:08:24 +08:00
parent cdb5937a66
commit c1f46df0dd
23 changed files with 1063 additions and 256 deletions
+4 -1
View File
@@ -74,7 +74,10 @@ export interface DownloadTask {
export interface KBModelConfigRequest {
llmModelId: string
embeddingModelId: string
vllmModelId?: string
vlm_config?: {
enabled: boolean
model_id?: string
}
documentSplitting: {
chunkSize: number
chunkOverlap: number
+4 -2
View File
@@ -12,8 +12,10 @@ export function createKnowledgeBase(data: {
chunking_config?: any;
embedding_model_id?: string;
summary_model_id?: string;
vlm_model_id?: string;
vlm_config?: any;
vlm_config?: {
enabled: boolean;
model_id?: string;
};
cos_config?: any;
extract_config?: any;
faq_config?: { index_mode: string; question_index_mode?: string };