Skip to main content
POST
/
v1
/
preview
/
models
/
{model_id}
/
log
Log
curl --request POST \
  --url https://api.example.com/v1/preview/models/{model_id}/log \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "split": "<string>",
  "trajectory_groups": [
    {
      "trajectories": [
        {
          "messages_and_choices": [
            {
              "content": "<string>",
              "role": "<string>",
              "name": "<string>"
            }
          ],
          "reward": 123,
          "tools": [
            {
              "function": {
                "name": "<string>",
                "description": "<string>",
                "parameters": {},
                "strict": true
              },
              "type": "<string>"
            }
          ],
          "additional_histories": [],
          "metrics": {},
          "metadata": {},
          "logs": [],
          "start_time": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
string
required

Body

application/json

Schema for logging trajectories.

split
string
required
trajectory_groups
TrajectoryGroup · object[]
required

Response

Successful Response