feat(upload): add process configuration support to CreateKnowledgeFromFile

- Updated the CreateKnowledgeFromFile function to accept an optional processConfig parameter, enhancing flexibility in knowledge file uploads.
- Modified related service and test files to accommodate the new parameter, ensuring consistent handling across the upload process.
This commit is contained in:
wizardchen
2026-06-10 15:17:51 +08:00
committed by lyingbug
parent c204f7824f
commit fc98f000d8
4 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func runUploadRecursive(ctx context.Context, opts *UploadOptions, fopts *cmdutil
channel := cmp.Or(opts.Channel, uploadChannel)
outcomes, runErr := cmdutil.RunBatch(ctx, matches, func(ctx context.Context, p string) error {
k, err := svc.CreateKnowledgeFromFile(ctx, kbID, p, meta, opts.EnableMultimodel, "", channel)
k, err := svc.CreateKnowledgeFromFile(ctx, kbID, p, meta, opts.EnableMultimodel, "", channel, nil)
if err != nil {
code := cmdutil.ClassifyHTTPError(err)
if firstFailCode == "" {