Return timestamps in OpenAI compat endpoints in proper format (#2921)
This commit is contained in:
parent
fa3079bbbf
commit
ef71b95cf9
@ -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: [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user