From 9607ef8cf8a75c3f2ef54ed4aba382521e24ab14 Mon Sep 17 00:00:00 2001 From: Charles Marion Date: Thu, 24 Oct 2024 12:15:09 -0500 Subject: [PATCH] bug: Fix cli stopping when using Bedrock KB (#595) --- cli/magic-config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/magic-config.ts b/cli/magic-config.ts index 5e2e42ca..348c720d 100644 --- a/cli/magic-config.ts +++ b/cli/magic-config.ts @@ -838,6 +838,7 @@ async function processCreateOptions(options: any): Promise { choices: embeddingModels.map((m) => ({ name: m.name, value: m })), initial: options.defaultEmbedding, validate(value: string) { + if ((this as any).skipped) return true; const embeding = embeddingModels.find((i) => i.name === value); if ( answers.enableRag &&