Environment
Wolfram Mathemtica / U-M GPT Toolkit
Issue
How to set up the Wolfram Mathematica integration with U-M GPT Toolkit to access Chat Notebooks.
Resolution
Chat Notebooks are a type of Mathematica notebook that supports generative AI. The primary purpose of chat within Mathematica is to serve as a Code Assistant--i.e., to write, debug, modify, and understand Wolfram Language code.
Before you begin, complete the following:
- Create an API Key in U-M GPT Toolkit and save it for later reference.
- Open the Wolfram website and download the UMichAzureOpenAIServiceConnection.zip file. Open the file and extract the contents.
- Launch the extracted Setup.nb file.
- Click Install Azure OpenAI Michigan.
- Click Open Chat Notebook.
- Click inside the chat box. While holding the Shift key, hit Enter on your keyboard. A dialog box opens.
- Enter the API Key you previously generated and a valid, authorized billing Shortcode in the applicable fields.
- Click the Save this connection checkbox.
- Click Agree and Continue.
You can now use chat within any Mathematica notebook. See additional guidance using Chat Notebooks.
Note that you can change U-M GPT models within the Preferences menu.
![Preferences > AI Settings menu showing the Model selection drop-down menu](https://teamdynamix.umich.edu/TDPortal/Images/Viewer?fileName=51e0f619-6b48-4e52-bffb-cfc94bcf18d0.png&beidInt=2)
Additional Information
Request access to U-M GPT Toolkit.
Need additional information or assistance? Contact the ITS Service Center.