title: FastAPI and Axios POST request misconfiguration
body: <p>I have a FastAPI backend configured as such:</p>
  <pre class="lang-py prettyprint-override"><code>@app.post(&quot;/engines/completions&quot;)
  async def read_completions(
      # engine_id:str,
      prompt: Optional[str] = None,
      max_tokens: Optional[int] = 16,
      temperature: Optional[float] = 1.0,
      top_p: Optional[float] = 1.0,
      top_k: Optional[int] = 40,
      n: Optional[int] = 1,
      stream: Optional[bool] = False,
      logprobs: Optional[int] = None,
      echo: Optional[bool] = False,
      stop: Optional[list] = None,
      presence_penalty: Optional[float] = 0.0001,
      frequency_penalty: Optional[float] = 0.0001,
      best_of: Optional[int] = 1,
      recursive_depth: Optional[int] = 0,
      recursive_refresh: Optional[int] = 0,
      logit_bias: Optional[Dict[str, float]] = None,
  ):
  </code></pre>
  <p>and an Axios request configured like this:</p>
  <pre class="lang-js prettyprint-override"><code>let stop = &quot;stuff&quot;;
  let prompt =&quot;test&quot;;
  let url = &quot;http://localhost:8000/engines/completions&quot;;
  const options = {
    method: &quot;POST&quot;,
    headers: { &quot;content-type&quot;: &quot;application/json&quot;},
    timeout: 2000000,
    body: {stop, prompt},
    url,
  };
  axios(options)
  </code></pre>
  <p>My request goes through without getting a <code>442</code> error, but <code>prompt</code> and <code>stop</code> attributes would result in <code>None</code> in my <code>read_completions</code> function. What am I doing wrong?</p>