diff --git a/server/utils/chats/openaiCompatible.js b/server/utils/chats/openaiCompatible.js index b66d0f47b6..4e042d3d53 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: [ {