Parameters
Baseplate API key. Needs to be in the format โBearer &BASEPLATE_API_KEYโ
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.
๐ข 200: OK
๐ 401: Unauthorized
{
"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"
}
}