Function AI.ASK

Use AI.ASK to submit a prompt to OpenAI ( ChatGPT ) and returns the completion

Examples

  • =AI.ASK(“Write a tagline for a coffee shop”)
  • =AI.ASK(“Extract zip code from”, A2)
  • =AI.ASK(“Write a tagline for”, A3, 1)
  • =AI.ASK(“Write a tagline for”, A3, 1, 1000)
  • =AI.ASK(“Write a tagline for”, A3, 1, 1000, “text-curie-001”)

Syntax

AI.ASK(prompt, [value], [temperature], [maxTokens], [model])

Argument name Description
prompt The prompt to submit.

value

OPTIONAL

The value to be added to the end of the prompt.

temperature

OPTIONAL

Controls the creativity of the response, with 0 being the most predictable and 2 being the most random. The default value is 0.

maxTokens

OPTIONAL

The maximum number of tokens that can be generated in the chat completion.

model

OPTIONAL

ID of the model to use. See the supported models page for details.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us