Skip to content

Commit

Permalink
Merge pull request #80 from MacPaw/Krivoblotsky-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Krivoblotsky authored Jun 21, 2023
2 parents b116159 + 2c397fc commit 29c0937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ To initialize API instance you need to [obtain](https://platform.openai.com/acco

Once you have a token, you can initialize `OpenAI` class, which is an entry point to the API.

> ⚠️ OpenAI strongly recommends developers of client-side applications proxy requests through a separate backend service to keep their API key safe. API keys can access and manipulate customer billing, usage, and organizational data, so it's a significant risk to expose them.
```swift
let openAI = OpenAI(apiToken: "YOUR_TOKEN_HERE")
```
Expand Down

0 comments on commit 29c0937

Please sign in to comment.