mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Instructions for OPENAI_API_KEY as env var and in IDEs (#1042)
This commit is contained in:
parent
27f7f361b9
commit
60998aabbe
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
> ✨ Navigate at [cookbook.openai.com](https://cookbook.openai.com)
|
> ✨ Navigate at [cookbook.openai.com](https://cookbook.openai.com)
|
||||||
|
|
||||||
Example code and guides for accomplishing common tasks with the [OpenAI API](https://platform.openai.com/docs/introduction). To run these examples, you'll need an OpenAI account and associated API key ([create a free account here](https://beta.openai.com/signup)).
|
Example code and guides for accomplishing common tasks with the [OpenAI API](https://platform.openai.com/docs/introduction). To run these examples, you'll need an OpenAI account and associated API key ([create a free account here](https://beta.openai.com/signup)). Set an environment variable called `OPENAI_API_KEY` with your API key. Alternatively, in most IDEs such as Visual Studio Code, you can create an `.env` file at the root of your repo containing `OPENAI_API_KEY=<your API key>`, which will be picked up by the notebooks.
|
||||||
|
|
||||||
Most code examples are written in Python, though the concepts can be applied in any language.
|
Most code examples are written in Python, though the concepts can be applied in any language.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user