curl -X POST https://api.worker.helicone.ai/custom/v1/log \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"providerRequest": {
"url": "custom-model-nopath",
"json": {
"_type": "tool",
"toolName": "weather_api",
"input": {
"location": "San Francisco",
"units": "celsius"
}
},
"meta": {
"user_id": "user_123",
"session_id": "session_456",
"environment": "production"
}
},
"providerResponse": {
"json": {
"_type": "tool",
"toolName": "weather_api",
"temperature": 18.5,
"conditions": "Partly Cloudy",
"humidity": 72,
"wind": {
"speed": 12,
"direction": "NW"
}
},
"status": 200,
"headers": {
"content-type": "application/json",
"cache-control": "max-age=300"
}
},
"timing": {
"startTime": {
"seconds": 1625686222,
"milliseconds": 500
},
"endTime": {
"seconds": 1625686223,
"milliseconds": 750
}
}
}'