This blog post has the “slides” of the presentation “OpenAIMode demo” in which is demonstrated creation and evaluation of OpenAI interaction cells in Mathematica notebooks. (Via a special notebook style.)

Setup
- It is assumed that the paclet OpenAILink is installed
- … and the required setup steps are completed.
- Install the paclet OpenAIMode
PacletInstall["AntonAntonov/OpenAIMode"]

Needs["AntonAntonov`OpenAIMode`"]
Demo
Let us show how the notebook style works:
- Needs
- OpenAIMode
- Text completion cell (shortcut: “Shift-|”)
- Tweak invocation parameters with SetOptions
- Image generation cell (shortcuts: “Tab”)
Screenshots


How does it work?
Consider the following flowchart:

Concluding remarks
Similar work
- DSLMode and RakuMode
- DarkMode and DraculaTheme
Future plans (…maybe)
More documentation
Should this notebook style functions be part of OpenAILink?
Based on feedback:
- Better default options
- Additional OpenAI cells