fix: getPipelineId in LlamaCloudIndex (#1317)

This commit is contained in:
Marcus Schiesser
2024-10-09 17:51:27 +07:00
committed by GitHub
parent 83f2848d47
commit 53fd00a7c3
2 changed files with 12 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---
Fix getPipelineId in LlamaCloudIndex
@@ -143,12 +143,16 @@ export class LlamaCloudIndex {
public async getPipelineId(
name?: string,
projectName?: string,
organizationId?: string,
): Promise<string> {
const { data: pipelines } =
await PipelinesService.searchPipelinesApiV1PipelinesGet({
path: {
project_id: await this.getProjectId(projectName),
project_name: name ?? this.params.name,
query: {
project_id: await getProjectId(
projectName ?? this.params.projectName,
organizationId ?? this.params.organizationId,
),
pipeline_name: name ?? this.params.name,
},
throwOnError: true,
});