Skip to content

Commit 0519f16

Browse files
authored
Update README.md
1 parent 8aee5b2 commit 0519f16

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ To import the package, follow these steps:
1313
### Setting Up Your OpenAI Account
1414
To use the OpenAI API, you need to have an OpenAI account. Follow these steps to create an account and generate an API key:
1515

16-
Go to https://openai.com/api and sign up for an account
17-
Once you have created an account, go to https://beta.openai.com/account/api-keys
18-
Create a new secret key and save it
16+
- Go to https://openai.com/api and sign up for an account
17+
- Once you have created an account, go to https://beta.openai.com/account/api-keys
18+
- Create a new secret key and save it
1919

2020
### Saving Your Credentials
2121
To make requests to the OpenAI API, you need to use your API key and organization name (if applicable). To avoid exposing your API key in your Unity project, you can save it in your device's local storage.
2222

2323
To do this, follow these steps:
2424

25-
Create a folder called .openai in your home directory (e.g. C:User\UserName\ for Windows or ~\ for Linux or Mac)
26-
Create a file called auth.json in the .openai folder
27-
Add an api_key field and a organization field (if applicable) to the auth.json file and save it
28-
Here is an example of what your auth.json file should look like:
25+
- Create a folder called .openai in your home directory (e.g. `C:User\UserName\` for Windows or `~\` for Linux or Mac)
26+
- Create a file called `auth.json` in the `.openai` folder
27+
- Add an api_key field and a organization field (if applicable) to the auth.json file and save it
28+
- Here is an example of what your auth.json file should look like:
2929

3030
```json
3131
{
@@ -38,7 +38,8 @@ Do not share it with others or expose it in any client-side code (e.g. browsers,
3838
If you are using OpenAI for production, make sure to run it on the server side, where your API key can be securely loaded from an environment variable or key management service.
3939

4040
### Making Requests to OpenAPI
41-
You can use the `OpenAIApi` class to make async requests to the OpenAI API.
41+
You can use the `OpenAIApi` class to make async requests to the OpenAI API.
42+
4243
All methods are asynchronous and can be accessed directly from an instance of the `OpenAIApi` class.
4344

4445
Here is an example of how to make a request:

0 commit comments

Comments
 (0)