Why am I getting 400 'responseText is required'?

The request body had no responseText. Send the text to score in a field named exactly responseText, as JSON.

Last updated

Fix

{ "responseText": "The text to score." }
  • Send Content-Type: application/json.
  • On /api/evaluate the message is responseText is required (alias: content) with code RESPONSE_TEXT_REQUIRED. content works there too.

Sending a chat message?

/api/chat takes message, not responseText.