Skip to content

Commit

Permalink
bug: Fix cli stopping when using Bedrock KB (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-marion authored Oct 24, 2024
1 parent 23d4da3 commit 9607ef8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/magic-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ async function processCreateOptions(options: any): Promise<void> {
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 &&
Expand Down

0 comments on commit 9607ef8

Please sign in to comment.