422 Unprocessable Entity when trying to use conversational API
#116
by
RandomDebugGuy
- opened
I have been working on a project that requires a conversational AI model, but the HF API, even with the example code, always returns 422 unprocessable entity. When I requested through insomnia, it returned "Failed to deserialize the JSON body into the target type: inputs: invalid type: map, expected a string at line 2 column 14". I am sending this JSON with the request, which is the exact same format as the HF docs give in the example:
"inputs": {
"past_user_inputs": [],
"generated_responses": [],
"text": "help me"
}
}```