{
"model": "gpt-3.5-turbo-0125",
"messages": [
{
"role": "system",
"content": "you are helpful assistant."
},
{
"role": "user",
"content": "what is AI"
}
],
"temperature": 0.2,
"max_tokens": 4095,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"user": "9"
}
{
"id": "chatcmpl-98fzFsC4tezpBQFfoHpNKJus90suy",
"object": "chat.completion",
"created": 1711855049,
"model": "gpt-3.5-turbo-0125",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Ai stands for artificial intelligence, which refers to the simulation of human intelligence processes by machines, especially computer systems. This includes learning, reasoning, problem-solving, perception, and language understanding. Ai is used in a wide range of applications, from virtual assistants like Siri and Alexa to self-driving cars and medical diagnosis systems."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 127,
"completion_tokens": 60,
"total_tokens": 187
},
"system_fingerprint": "fp_3bc1b5746c"
}
curl -X POST https://api.hconeai.com/oai/v1/log \
-H 'Authorization: Bearer your_api_key' \
-H 'Content-Type: application/json' \
-d '{
"providerRequest": {
"url": "https://example.com",
"json": {
"key1": "value1",
"key2": "value2"
},
"meta": {
"metaKey1": "metaValue1",
"metaKey2": "metaValue2"
}
},
"providerResponse": {
"json": {
"responseKey1": "responseValue1",
"responseKey2": "responseValue2"
},
"status": 200,
"headers": {
"headerKey1": "headerValue1",
"headerKey2": "headerValue2"
}
},
"timing": {
"startTime": {
"seconds": 1625686222,
"milliseconds": 500
},
"endTime": {
"seconds": 1625686244,
"milliseconds": 750
}
}
}'
All
tab. "timing": { "startTime": { "seconds": 1711947513, "milliseconds": 0 }, "endTime": { "seconds": 1711947513, "milliseconds": 0 } }
meta
:"meta": { "Helicone-User-Id": "1234", "Helicone-Property-daf": "TEST" }
"providerRequest": { "url": "openai.com", "json": { "model": "gpt-3", "prompt": "how are you" }, "meta": { "Helicone-User-Id": "1234", "Helicone-Property-daf": "TEST" } }
meta
tags. This is to differentiate it from the provider (openai/anthropic/etc) fields.