Skip to content

Commit

Permalink
docs: fix typo in README.md for 'recommended'
Browse files Browse the repository at this point in the history
  • Loading branch information
zoubingwu committed Jul 4, 2024
1 parent 611cd93 commit 46992bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface Config {
```

> [!IMPORTANT]
> For security issue, it is recommanded to put your api keys in the `.env` files, and only leave the env key in the settings, for example if you are using vite, the setting should be `"apiKey": "import.meta.env.VITE_OPENAI_API_KEY"` since this is the way how vite loaded env variables, for Next.js, you could just use `"apiKey": "process.env.PUBLIC_OPENAI_API_KEY"`. If you want to use plain value in the setting, make sure they are **quoted** like `"model": "'gpt-4o'"`
> For security issue, it is recommended to put your api keys in the `.env` files, and only leave the env key in the settings, for example if you are using vite, the setting should be `"apiKey": "import.meta.env.VITE_OPENAI_API_KEY"` since this is the way how vite loaded env variables, for Next.js, you could just use `"apiKey": "process.env.PUBLIC_OPENAI_API_KEY"`. If you want to use plain value in the setting, make sure they are **quoted** like `"model": "'gpt-4o'"`
## Usage

Expand Down

0 comments on commit 46992bf

Please sign in to comment.