From f417ffd5e07c765e8b0e731e0288f49e89a219cf Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 1 Jan 2025 15:54:44 -0800 Subject: [PATCH] resolves #2926 floor ms value --- server/utils/chats/openaiCompatible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/chats/openaiCompatible.js b/server/utils/chats/openaiCompatible.js index 4e042d3d53..a76347bf71 100644 --- a/server/utils/chats/openaiCompatible.js +++ b/server/utils/chats/openaiCompatible.js @@ -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: [ {