GitButler Logo

Evaluate Prompt

POST
/evaluate_prompt/predict

Post Evaluate Prompt Predict

Evaluate an AI Prompt

Request Body

messages[role]
Required
array<string>

messages[content]
Required
array<string>

max_tokensinteger

Maximum number of output tokens, maximum 400

Default: 300Format: "int32"

temperaturenumber

How creative the response should be. Between 0 and 2, the lower the less creative

Format: "float"

model_kindstring

Which model provider should be used

Default: "openai"Value in: "openai" | "anthropic"
Status codeDescription
201Evaluate an AI Prompt
/evaluate_prompt/predict

curl -X POST "https://app.gitbutler.com/api/evaluate_prompt/predict" \
  -d '{
  "messages[role]": [
    "string"
  ],
  "messages[content]": [
    "string"
  ],
  "max_tokens": 300,
  "temperature": 0.1,
  "model_kind": "openai"
}'