diff --git a/server/utils/chats/openaiCompatible.js b/server/utils/chats/openaiCompatible.js index b66d0f47b679a931a835573f896c79cfd1b75496..4e042d3d53a10f36806d2527d59504386bc6fc37 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()), + created: Number(new Date()) / 1000, // in seconds model: model, choices: [ {