mirror of
https://github.com/PawanOsman/ChatGPT.git
synced 2026-07-18 08:05:57 +02:00
Merge pull request #91 from Crescent617/fix_created
Fix response timestamp
This commit is contained in:
+1
-1
@@ -172,7 +172,7 @@ async function handleChatCompletion(req: Request, res: Response) {
|
||||
|
||||
let fullContent = "";
|
||||
let requestId = GenerateCompletionId("chatcmpl-");
|
||||
let created = Date.now();
|
||||
let created = Math.floor(Date.now() / 1000); // Unix timestamp in seconds
|
||||
let finish_reason = null;
|
||||
|
||||
for await (const message of StreamCompletion(response.data)) {
|
||||
|
||||
Reference in New Issue
Block a user