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
Your own custom key-value pairs can be attached to the logs. This is useful for storing additional information related to your interactions with the LLM providers or specifics within your application.
Show child attributes
Usage statistics to add to the deployment
Show child attributes
Show child attributes
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
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
Feedback from the user on the completion
Show child attributes
Successful operation
Whether the request was successful
Was this page helpful?