Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ python data/get_initial_embeddings.py \
--token_per_minute TOKEN_PER_MINUTE \
--output_dir <directory where the embeddings will be saved as MODEL_NAME.json, default = data/embeddings>
```
Note that, this script can both use [OpenAI api](https://github.com/openai/openai-python/releases/tag/v1.4.0) and [Azure OpenAI api](https://learn.microsoft.com/en-us/azure/ai-services/openai/overview). For using OpenAI api, the API key must be exported as `OPENAI_API_KEY` environment variable. Run `export OPENAI_API_KEY=<Your API Key>`. For using Azure Open AI api, a azure config json file is needed with the above script (`--azure_config`). The Config file should be formatted as,
Note that, this script can both use [OpenAI API](https://github.com/openai/openai-python/releases/tag/v1.4.0) and [Azure OpenAI API](https://learn.microsoft.com/en-us/azure/ai-services/openai/overview). For using OpenAI API, the API key must be exported as `OPENAI_API_KEY` environment variable. Run `export OPENAI_API_KEY=<Your API Key>`. For using Azure OpenAI API, a azure config json file is needed with the above script (`--azure_config`). The Config file should be formatted as,
```json
{
"API_BASE": "<base url of your azure openai endpoint>",
Expand Down