Before building an agent that uses an OpenAI model, you’ll need to create an
OpenAI developer account and get an API key.
Configuration
The name of the OpenAI model you want your agent to use.
By default, your agent will use
gpt-4o-mini
.The name of the secret which contains your OpenAI API key. NOTE: This is the name of the
secret, not your actual secret key!
Creating the Model
Callingopenai()
with no arguments will use all default values:
string
argument will set the model name
: