curl --request POST \
--url https://api.orq.ai/v2/deployments/{id}/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {},
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
},
"performance": {
"latency": 123,
"time_to_first_token": 123
},
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"choices": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"feedback": {
"score": 50
}
}
'{
"success": true
}Add metrics to a deployment
curl --request POST \
--url https://api.orq.ai/v2/deployments/{id}/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {},
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
},
"performance": {
"latency": 123,
"time_to_first_token": 123
},
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"choices": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"feedback": {
"score": 50
}
}
'{
"success": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Deployment ID
The deployment request payload
Usage statistics to add to the deployment
A list of messages sent to the model.
Developer-provided instructions that the model should follow, regardless of messages sent by the user.
Show child attributes
The role of the messages author, in this case system.
system The contents of the system message.
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
A list of completion choices. If you are using a completion model then you must provide the completion content with the chat completion format
Developer-provided instructions that the model should follow, regardless of messages sent by the user.
Show child attributes
The role of the messages author, in this case system.
system The contents of the system message.
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
Successful operation
Whether the request was successful
Was this page helpful?