Prompts

Create Prompt Version

Changed on
post/console/v1/prompts/{id}/versions

Request

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

Path parameters

idstring required

id

Request body

temperaturenumber double
modelstring
namestring required

The Prompt Version display name

providerstring
workflow_urlstring nullable

Offline-eval workflow URL. Empty or null removes it. Changing it clears the stored workflow_headers and auth_workflow_headers unless they are sent in the same request.

eval_modelstring
top_pnumber double
frequency_penaltynumber double
presence_penaltynumber double
max_tokensnumber double
idstring

The Prompt Version name ID

descriptionstring

Example request

{
  "name": "my_config"
}

Response

Create Prompt Version

messagestring required

A simple string explaining the result of the operation.

Changes

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      the response property // became required for the status

    • info

      removed the assistant enum value from the //// response property for the response status

    • info

      removed the system enum value from the //// response property for the response status

    • info

      removed the user enum value from the //// response property for the response status

    • info

      the // response's property pattern ^[a-zA-Z0-9_\-.]*$ was removed for the status

    • info

      the // response's property pattern ^[a-zA-Z0-9_\-. ]*$ was removed for the status

    • info

      added the new optional request property

    • info

      added the optional property // to the response with the status