Metrics
Compute metric
POST
/
metrics
/
compute
Authorization
Body
curl --request POST \
--url https://api.honeyhive.ai/metrics/compute \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"generation": "<string>",
"metric": {
"code_snippet": "<string>",
"name": "<string>",
"task": "<string>"
}
}'
{
"result": 123
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
generation
string
metric
object
Response
200 - application/json
result
number
curl --request POST \
--url https://api.honeyhive.ai/metrics/compute \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"generation": "<string>",
"metric": {
"code_snippet": "<string>",
"name": "<string>",
"task": "<string>"
}
}'
{
"result": 123
}