Skip to content

Commit 43dba54

Browse files
committed
make created timestamp as unix timestamp in seconds instead of milliseconds
1 parent 8506249 commit 43dba54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/openai/chatComplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const OpenAIChatCompleteJSONToStreamResponseTransform: (
181181
const streamChunkTemplate: Record<string, any> = {
182182
id,
183183
object: 'chat.completion.chunk',
184-
created: Date.now(),
184+
created: Math.floor(Date.now() / 1000),
185185
model: model || '',
186186
system_fingerprint: system_fingerprint || null,
187187
provider,

0 commit comments

Comments
 (0)