Gateway

Test a classifier on a sample

Changed on

Runs a draft or saved classifier once on a sample prompt and response, with the same request the gateway sends for it. The request is a real, billed model request made with your own credential and labelled phaseo.classifier_test. Owners and admins; the credential needs classifiers:write and gateway:access. Management keys cannot make model requests and are refused.

post/classifiers/test

Request

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

Request body

classifier_idstring uuid

A saved classifier in this workspace to test, or to label the test with.

Response

The labels the model chose

Changes