Gateway

Update a classifier

Changed on

Updates the fields you send. Changes reach the gateway within about a minute. Labels already written to past requests are not changed.

patch/classifiers/{id}

Request

  • Base URL
    https://api.phaseo.app/v1
  • URL
    https://api.phaseo.app/v1/classifiers/{id}
  • Auth
    HTTP bearer

Request body

namestring
descriptionstring nullable
enabledboolean
modelstring
instructionsstring
sample_ratenumber double
sample_by'request' | 'session'

request samples each request on its own. session keeps every request in a session in or out together.

input_scope'prompt' | 'prompt_and_response'

prompt classifies the request messages. prompt_and_response also shows the model the generated response.

monthly_budget_usdnumber double nullable

Response

Classifier updated

Changes

    • breaking

      added to the response property oneOf list for the response status

    • info

      added the optional property to the response with the status

    • info

      removed subschema #2 from the response property oneOf list for the response status

    • info

      endpoint added