feat: 新增多模态参数及处理逻辑,优化图片与删除操作

This commit is contained in:
begoniezhao
2025-08-08 17:19:06 +08:00
parent 143ca602ff
commit 104a65ad23
5 changed files with 237 additions and 92 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func ExampleUsage() {
"source": "local",
"type": "document",
}
knowledge, err := apiClient.CreateKnowledgeFromFile(context.Background(), createdKB.ID, filePath, metadata)
knowledge, err := apiClient.CreateKnowledgeFromFile(context.Background(), createdKB.ID, filePath, metadata, nil)
if err != nil {
fmt.Printf("Failed to upload knowledge file: %v\n", err)
} else {