How to change the environment variables?
To configure the TEXTCRAFT_OPENAI_ENDPOINT environment variable for the TextCraft add-in in Microsoft Word, follow these steps:
Open the Environment Variables Window:
Press Win + R to open the Run dialog.
Type sysdm.cpl and press Enter to open the System Properties window.
Navigate to the Advanced tab and click on Environment Variables.
Add the Environment Variable:
In the Environment Variables window, under User variables, click New.
For the Variable name, enter TEXTCRAFT_OPENAI_ENDPOINT.
For the Variable value, input the desired API endpoint URL (e.g., https://api.openai.com/v1).
Click OK to save the new variable.
Restart Microsoft Word:
Close any open instances of Microsoft Word.
Reopen Word to apply the new environment variable settings.