From 0047d50bf790da77214dea06a25515c2cb919d11 Mon Sep 17 00:00:00 2001 From: Shreya Shankar Date: Wed, 4 Dec 2024 15:42:54 -0800 Subject: [PATCH] fix: make sure show outputs works after namespaces (#230) * feat: add namespaces * feat: add namespaces * feat: add namespaces * fix: show outputs needs to read intermediates correctly * fix: show outputs needs to read intermediates correctly --- website/src/app/api/getInputOutput/route.ts | 4 ++-- website/src/app/api/getPipelineConfig/route.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/app/api/getInputOutput/route.ts b/website/src/app/api/getInputOutput/route.ts index b90d048f..d4c193b2 100644 --- a/website/src/app/api/getInputOutput/route.ts +++ b/website/src/app/api/getInputOutput/route.ts @@ -30,14 +30,14 @@ export async function POST(request: Request) { const homeDir = process.env.DOCETL_HOME_DIR || os.homedir(); const { inputPath, outputPath } = generatePipelineConfig( + namespace, default_model, data, operations, operation_id, name, homeDir, - sample_size, - namespace + sample_size ); // Check if inputPath exists diff --git a/website/src/app/api/getPipelineConfig/route.ts b/website/src/app/api/getPipelineConfig/route.ts index d55acb78..75e2c5c4 100644 --- a/website/src/app/api/getPipelineConfig/route.ts +++ b/website/src/app/api/getPipelineConfig/route.ts @@ -31,6 +31,7 @@ export async function POST(request: Request) { const homeDir = process.env.DOCETL_HOME_DIR || os.homedir(); const { yamlString } = generatePipelineConfig( + namespace, default_model, data, operations, @@ -38,7 +39,6 @@ export async function POST(request: Request) { name, homeDir, sample_size, - namespace, system_prompt );