fix created bug

This commit is contained in:
Yanyutin753
2024-04-26 11:51:42 +08:00
parent be35d070c2
commit 337547c677
6 changed files with 2 additions and 2 deletions

View File

@@ -1414,7 +1414,7 @@ public class ChatController {
continue;
}
String chat_message_id = resJson.getString("id");
String timestamp = resJson.getString("created");
long timestamp = resJson.getLong("created");
streamResponse.Choice choice = new streamResponse.Choice(0, new streamResponse.Delta(content), null);
streamResponse streamResponse = new streamResponse(chat_message_id, "chat.completion.chunk", model, choice, timestamp);
String tmpRes = "data: " + com.alibaba.fastjson.JSONObject.toJSONString(streamResponse) + "\n\n";

View File

@@ -18,7 +18,7 @@ public class streamResponse {
private String model;
private String object;
private Choice choice;
private String created;
private long created;
@Data

Binary file not shown.