Prompts

Update Prompt Eval Settings

Changed on

Set the graders attached to a prompt (replacing the current list), which one is primary or critical, which grade online traffic, the eval dataset, and the online sampling rate.

patch/console/v1/prompts/{id}/eval_settings

Request

  • Base URL
    https://statsigapi.net
  • URL
    https://statsigapi.net/console/v1/prompts/{id}/eval_settings
  • Auth
    API key in header STATSIG-API-KEY

Path parameters

idstring required

id

Request body

datasetstring nullable

Eval dataset name or ID to score offline evals against. Null leaves the dataset unchanged.

onlineSamplingRatenumber double

Percent of production traffic graded online, 0 to 100.

Response

Update Prompt Eval Settings

messagestring required

A simple string explaining the result of the operation.

Changes