Gateway

Create a classifier

Changed on

Creates a classifier. After each eligible request finishes, the chosen model places it in every dimension and the answers are added to the request as labels, so they can be filtered and grouped in logs, usage and analytics. Classification runs after the response is sent and is billed to the workspace at the model's normal price.

post/classifiers

Request

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

Request body

namestring required
descriptionstring nullable
enabledboolean
modelstring required
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 created

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