Skip to content

Commit

Permalink
fix: wrong openai key name while initing new project
Browse files Browse the repository at this point in the history
  • Loading branch information
grabbou committed Dec 17, 2024
1 parent dc84f8c commit e5ecccf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/create-fabrice-ai/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ s.stop('Downloaded and extracted template!')
* If they choose to do it now, we will ask them to provide their API key.
* If they do not provide the answer, we will continue to the next step.
*/
if (!process.env.OPENAI_API_KEY2) {
if (!process.env.OPENAI_API_KEY) {
log.warning(
'No OPENAI_API_KEY found in environment variables. Fabrice starter projects use OpenAI and require an API key.'
)
Expand Down
7 changes: 5 additions & 2 deletions packages/framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
},
"./providers/*": {
"bun": "./src/providers/*.ts",
"types": "./dist/providers/*.d.ts",
"types": {
"import": "./dist/providers/*.d.ts",
"require": "./dist/providers/*.d.cts"
},
"require": "./dist/providers/*.cjs",
"import": "./dist/providers/*.js"
}
Expand Down Expand Up @@ -56,5 +59,5 @@
"engines": {
"node": ">=22"
},
"version": "0.5.1"
"version": "0.5.0"
}

0 comments on commit e5ecccf

Please sign in to comment.