Skip to content

Commit

Permalink
fix: wording
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Apr 9, 2024
1 parent 0e3e1fc commit 74504fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .changeset/curvy-eels-boil.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"create-llama": patch
---

Remove asking for an embedding model and use OpenAI Embeddings v3 per default. Add `--use-embed-model` CLI parameter to change embedding model.
Remove asking for an embedding model and use OpenAI Embeddings v3 per default. Add `--change-embed-model` CLI parameter to change embedding model.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const program = new Commander.Command(packageJson.name)
"Specify observability tools to use. Eg: none, opentelemetry",
)
.option(
"--use-embed-model",
"--change-embed-model",
`
Enable selecting an embedding model.
`,
Expand All @@ -198,8 +198,8 @@ if (process.argv.includes("--tools")) {
if (process.argv.includes("--no-llama-parse")) {
program.useLlamaParse = false;
}
if (process.argv.includes("--use-embed-model")) {
program.useEmbedModel = true;
if (process.argv.includes("--change-embed-model")) {
program.changeEmbedModel = true;
}
if (process.argv.includes("--no-files")) {
program.dataSources = [];
Expand Down
4 changes: 2 additions & 2 deletions questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type QuestionArgs = Omit<
"appPath" | "packageManager"
> & {
listServerModels?: boolean;
useEmbedModel?: boolean;
changeEmbedModel?: boolean;
};
const supportedContextFileTypes = [
".pdf",
Expand Down Expand Up @@ -583,7 +583,7 @@ export const askQuestions = async (
}

if (!program.embeddingModel) {
if (ciInfo.isCI || !program.useEmbedModel) {
if (ciInfo.isCI || !program.changeEmbedModel) {
program.embeddingModel = getPrefOrDefault("embeddingModel");
} else {
const { embeddingModel } = await prompts(
Expand Down

0 comments on commit 74504fa

Please sign in to comment.