Prompts

✨ Try prompt on a single task

Changed on

Run a single-task ephemeral prediction using the current (possibly unsaved) prompt.

No ModelRun is created and no Prediction is stored. The user iterates until happy, then saves and does a full Run.

post/api/prompts/{prompt_id}/versions/{version_id}/try-task

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/api/prompts/{prompt_id}/versions/{version_id}/try-task
  • Auth
    API key in header Authorization

Path parameters

prompt_idinteger required
version_idinteger required

Request body

project_idinteger required
prompt_overridestring
task_idinteger required

Response

parsed_resultunknown
raw_responsestring required
task_idinteger required
usageunknown required

Changes

    • breaking

      added required request body

    • info

      added the media type application/json for the response with the status