Skip to content
Snippets Groups Projects
Unverified Commit ef71b95c authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Return timestamps in OpenAI compat endpoints in proper format (#2921)

parent fa3079bb
No related branches found
No related tags found
No related merge requests found
......@@ -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: [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment