Prompts

✨ Update a few-shot example

Changed on

CRUD API for managing few-shot examples on a ThirdPartyModelVersion.

patch/api/prompts/{prompt_id}/versions/{version_id}/few-shot-examples/{id}

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/api/prompts/{prompt_id}/versions/{version_id}/few-shot-examples/{id}
  • Auth
    API key in header Authorization

Path parameters

idinteger required
prompt_idinteger required
version_idinteger required

Request body

annotationinteger
orderinteger
taskinteger

Response

annotationinteger required
annotation_resultobject[] required
created_atstring date-time required
idinteger required
orderinteger
taskinteger required
task_dataobject required

Changes

    • breaking

      the response's property type changed from string to array for status

    • breaking

      the response's property type changed from string to object for status