test_framework

POST /test_framework/v1/metrics/simplify_prompt/

Changed on

Metrics simplify prompt

Deprecated: POST /test_framework/v3/metrics/simplify_prompt/ does this in one call and returns the result.

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/test_framework/v1/metrics/simplify_prompt/
  • Auth
    • API key in header X-CEKURA-API-KEY
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

original_promptstring required

The verbose prompt to simplify

metric_idinteger

Optional metric ID. If provided and metric is already optimized, returns stored instructions instead of simplifying.

Response

simplified_promptstring
original_promptstring
skipped_simplificationboolean
progress_idstring

Returned when async processing is needed. Poll simplify_prompt_progress for result.

Changes