fix: LlamaCloud API calls for ensuring and index and for file uploads (#1332)

This commit is contained in:
Marcus Schiesser
2024-10-15 11:21:35 +07:00
committed by GitHub
parent e0e52cf879
commit 5729bd92fd
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---
Fix LlamaCloud API calls for ensuring an index and for file uploads
@@ -41,7 +41,7 @@ export class LLamaCloudFileService {
) {
initService();
const { data: file } = await FilesService.uploadFileApiV1FilesPost({
path: { project_id: projectId },
query: { project_id: projectId },
body: {
upload_file: uploadFile,
},
@@ -378,7 +378,7 @@ export class LlamaCloudIndex {
const { data: pipeline } =
await PipelinesService.upsertPipelineApiV1PipelinesPut({
path: {
query: {
project_id: projectId,
},
body: {