title: How to specify maximum number of words OpenAI completion should return
body: <p>How can I specify the number of words the Open AI completion should return?</p>
  <p>E.g imagine I ask the AI the question</p>
  <blockquote>
  <p>Who is Elon Musk?</p>
  </blockquote>
  <p>What parameter can I use to make sure the AI sends back results less than or equal to 300 words.</p>
  <p>I was thinking the <code>max_tokens</code> parameter was for that but it seems <code>max_tokens</code> is for breaking the input down not the output.</p>
  <p>Any ideas would be greatly appreciated. Thank you</p>