Report a failed completion
Changed onReport failed or problematic completions to help improve Morph's quality. Reference the completion by the id returned with the original response and describe the failure; the original request and response are already on file.
Request
- Base URLhttps://api.morphllm.com
- AuthHTTP bearer
Request body
Example request
{
"completion_id": "chatcmpl-9d9e2fc21c094f4eacbcee0009f2f12d",
"failure_reason": "Traceback: ... Generated code had syntax errors",
"user_query": "Add error handling to the login function"
}Response
Report successfully recorded
Example response
{
"success": true,
"message": "Report successfully recorded",
"data": {
"request_log_id": "req_123456789",
"reported_at": "2024-01-15T10:30:00Z"
}
}Changes
- warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
api operation id
createReportwas added - info
the endpoint scheme security
bearerAuthwas added to the API - info
api tag
telemetryadded - info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status
- warning