Logs & Human Feedback
Updates the Rating for a Completion Log
Updates the rating of a completion using human feedback from your users. If you surface a like/dislike or other rating system, you can track the feedback in Baseplate.
PATCH
/
endpoints
/
{id}
/
logs
Parameters
Path
id
string
requiredBaseplate endpoint ID
Header
Authorization
string
requiredBaseplate API key. Needs to be in the format “Bearer &BASEPLATE_API_KEY”
Content-Type
string
Use application/json
Body
logs
Array
Array of logs to batch update. Each object should contain a positive_rating and usage_id. Either “logs” or “positive_rating + “usage_id” is required.
{
"user_id": "8f48225a-8d88-48ae-b464-d02051b9b556",
"project_id": "52ab5474-5535-4bba-9d7f-590e1dd0a280",
"timestamp": "2023-02-09T05:11:39.721074+00:00",
"openai_name": "text-davinci-003",
"cost": 0.00078,
"prompt": "Write a product description for Jacket. It is a new product in shoe. The description should have a angry tone.",
"completion": "\n\nThis Jacket is the ultimate in shoe fashion. It's sleek, stylish",
"id": "04bc3dfa-d1a1-4647-8970-f180a06f6bea",
"date": "2023-02-09",
"rating": 0,
"temp": 0,
"completions": null,
"managed": true,
"positive_rating": true,
"template_id": null,
"values": {
"tone": "angry",
"category": "shoe",
"product_name": "Jacket"
}
}