floor ms value
This commit is contained in:
timothycarambat 2025-01-01 15:54:44 -08:00
parent d52249aff8
commit f417ffd5e0

View file

@ -475,7 +475,7 @@ function formatJSON(
const data = {
id: chat.uuid ?? chat.id,
object: "chat.completion",
created: Number(new Date()) / 1000, // in seconds
created: Math.floor(Number(new Date()) / 1000),
model: model,
choices: [
{