run-openai-model
Last updated
Last updated
The run-openai-model
adaptor uses to create a model response for a given chat message.
Note that this adaptor can be used to create a single response for one chat message only. If you would like to create a response for each value in a datatable column, use the adaptor. If the values are in a list, you can use the adaptor to convert the list to a datatable before running the model.
model
Type: text
Required: No
The name of the language models to run. Consider the of each model. If unspecified, defaults to gpt-3.5-turbo
.
system message
Type: text
Required: Yes
The system message helps set the behavior of the assistant (e.g., You are a helpful assistant
). You can or provide specific instructions about how it should behave throughout the conversation.
user message
Type: text
Required: Yes
The input of the model to run.
api token
Type: text
Required: Yes
assistant message
Type: text
The model prediction.
duration
Type: text
The duration of the model run.
model
: gpt-3.5-turbo
system message
: You will be provided with a country name and your task is to return the name of its national capital.
user message
: United Kingdom
assistant message
: London
duration
: 1019
api token
: sk-************************************************ (visit page to retrieve the API key)