File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export async function askAnthropicQuestions({
56
56
} ,
57
57
} ;
58
58
59
- if ( ! config . apiKey && ! process . env . CI ) {
59
+ if ( ! config . apiKey ) {
60
60
const { key } = await inquirer . prompt ( [
61
61
{
62
62
type : "input" ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export async function askHuggingfaceQuestions({
42
42
{
43
43
type : "list" ,
44
44
name : "model" ,
45
- message : "Which LLM model would you like to use?" ,
45
+ message : "Which Hugging Face model would you like to use?" ,
46
46
choices : MODELS . map ( toChoice ) ,
47
47
} ,
48
48
] ) ;
Original file line number Diff line number Diff line change @@ -267,6 +267,13 @@ async function run(): Promise<void> {
267
267
name : "path" ,
268
268
message : "What is your project named?" ,
269
269
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
+ } ,
270
277
} ,
271
278
] ) ;
272
279
projectPath = projectPathAnswer ;
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ export const askSimpleQuestions = async (
78
78
{
79
79
type : "confirm" ,
80
80
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)",
83
83
default : false ,
84
84
} ,
85
85
] ) ;
You can’t perform that action at this time.
0 commit comments