telemetry

Report a failed completion

Changed on

Report 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.

post/api/report

Request

  • Base URL
    https://api.morphllm.com
  • Auth
    HTTP bearer

Request body

completion_idstring required

The completion ID from the original request (found in response headers or logs)

failure_reasonstring required

Description of what went wrong (Error message, traceback, etc.)

user_querystring

Optional: The original user instruction that led to the problematic completion

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

successboolean required

Whether the report was successfully recorded

messagestring required

Confirmation message

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 createReport was added

    • info

      the endpoint scheme security bearerAuth was added to the API

    • info

      api tag telemetry added

    • 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