Skip to content

Commit

Permalink
fix(default-prompt): use default prompt if user doesn't use -p or -pf
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdanwan committed Oct 7, 2024
1 parent f4370d9 commit 2c1b629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/option_handlers/handleFilesOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export default async function handleFilesOption(files, options) {
}
} else if (options.prompt) {
prompt = options.prompt || defaultPrompt;
} else {
prompt = defaultPrompt;
}

const model = options.model || toml?.preferences.MODEL || process.env.MODEL || 'gemini-1.5-flash';
Expand Down
2 changes: 2 additions & 0 deletions src/option_handlers/handleNoFilesOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default async function handleNoFilesOption(options) {
}
} else if (options.prompt) {
prompt = options.prompt || defaultPrompt;
} else {
prompt = defaultPrompt;
}

const model = options.model || toml?.preferences.MODEL || process.env.MODEL || 'gemini-1.5-flash';
Expand Down

0 comments on commit 2c1b629

Please sign in to comment.