Skip to content

Commit 3a10379

Browse files
committed
revert changes
1 parent 411fb6f commit 3a10379

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

helpers/providers/anthropic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function askAnthropicQuestions({
5656
},
5757
};
5858

59-
if (!config.apiKey && !process.env.CI) {
59+
if (!config.apiKey) {
6060
const { key } = await inquirer.prompt([
6161
{
6262
type: "input",

helpers/providers/huggingface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function askHuggingfaceQuestions({
4242
{
4343
type: "list",
4444
name: "model",
45-
message: "Which LLM model would you like to use?",
45+
message: "Which Hugging Face model would you like to use?",
4646
choices: MODELS.map(toChoice),
4747
},
4848
]);

index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ async function run(): Promise<void> {
267267
name: "path",
268268
message: "What is your project named?",
269269
default: "my-app",
270+
validate(name) {
271+
const validation = validateNpmName(path.basename(path.resolve(name)));
272+
if (validation.valid) {
273+
return true;
274+
}
275+
return "Invalid project name" + validation.problems![0];
276+
},
270277
},
271278
]);
272279
projectPath = projectPathAnswer;

questions/simple.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export const askSimpleQuestions = async (
7878
{
7979
type: "confirm",
8080
name: "useLlamaCloud",
81-
message:
82-
"Do you want to use LlamaCloud services? (see https://www.llamaindex.ai/enterprise for more info)",
81+
message: "Do you want to use LlamaCloud services?",
82+
suffix: " (see https://www.llamaindex.ai/enterprise for more info)",
8383
default: false,
8484
},
8585
]);

0 commit comments

Comments
 (0)