Skip to content

Commit

Permalink
resolves #2926
Browse files Browse the repository at this point in the history
floor ms value
  • Loading branch information
timothycarambat committed Jan 1, 2025
1 parent d52249a commit f417ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/chats/openaiCompatible.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down

0 comments on commit f417ffd

Please sign in to comment.