Skip to content
Snippets Groups Projects
Unverified Commit 5729bd92 authored by Marcus Schiesser's avatar Marcus Schiesser Committed by GitHub
Browse files

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

parent e0e52cf8
Branches
Tags
No related merge requests found
---
"llamaindex": patch
---
Fix LlamaCloud API calls for ensuring an index and for file uploads
...@@ -41,7 +41,7 @@ export class LLamaCloudFileService { ...@@ -41,7 +41,7 @@ export class LLamaCloudFileService {
) { ) {
initService(); initService();
const { data: file } = await FilesService.uploadFileApiV1FilesPost({ const { data: file } = await FilesService.uploadFileApiV1FilesPost({
path: { project_id: projectId }, query: { project_id: projectId },
body: { body: {
upload_file: uploadFile, upload_file: uploadFile,
}, },
......
...@@ -378,7 +378,7 @@ export class LlamaCloudIndex { ...@@ -378,7 +378,7 @@ export class LlamaCloudIndex {
const { data: pipeline } = const { data: pipeline } =
await PipelinesService.upsertPipelineApiV1PipelinesPut({ await PipelinesService.upsertPipelineApiV1PipelinesPut({
path: { query: {
project_id: projectId, project_id: projectId,
}, },
body: { body: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment