- Create a
Config.toml
file in the root directory and add the below content.
openAIToken = "<OPEN_AI_TOKEN>"
- Create a Open AI account and obtain an API key and replace with
<OPEN_AI_TOKEN>
.
Run the following command from the root directory of the sample.
$ bal run -- ./resources/example.txt