Skip to content

Commit

Permalink
Return timestamps in OpenAI compat endpoints in proper format (#2921)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat authored Dec 31, 2024
1 parent fa3079b commit ef71b95
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()),
created: Number(new Date()) / 1000, // in seconds
model: model,
choices: [
{
Expand Down

0 comments on commit ef71b95

Please sign in to comment.