feat(client): enhance knowledge file upload with process configuration support

- Updated the `CreateKnowledgeFromFile` function to accept an optional `processConfig` parameter for per-upload parse configuration overrides.
- Introduced the `KnowledgeProcessOverrides` type to define various parsing settings, including parser engine rules and chunking configurations.
- Modified the API client and related components to handle the new process configuration, improving flexibility in knowledge file uploads.
- Updated documentation and API specifications to reflect the new `process_config` parameter in the upload process.
- Added a new `UploadConfirmHost` component to facilitate user confirmation for uploads, integrating with the updated upload logic.
- Enhanced user experience by providing detailed configuration options during the upload process.
This commit is contained in:
wizardchen
2026-06-09 17:49:39 +08:00
committed by lyingbug
parent 589d2a6e52
commit ed9e780c8c
41 changed files with 3546 additions and 596 deletions
+4 -1
View File
@@ -6,6 +6,7 @@
:placeholder="placeholderText"
:disabled="disabled"
:loading="loading"
:status="status"
filterable
style="width: 100%;"
>
@@ -51,13 +52,15 @@ interface Props {
selectedModelId?: string
disabled?: boolean
placeholder?: string
status?: 'default' | 'success' | 'warning' | 'error'
// 可选:外部传入的所有模型列表,如果提供则不调用API
allModels?: ModelConfig[]
}
const props = withDefaults(defineProps<Props>(), {
disabled: false,
placeholder: ''
placeholder: '',
status: 'default',
})
const emit = defineEmits<{