mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
Return timestamps in OpenAI compat endpoints in proper format (#2921)
This commit is contained in:
parent
fa3079bbbf
commit
ef71b95cf9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue