mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-13 21:51:23 +00:00
fix created bug
This commit is contained in:
@@ -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";
|
||||
|
@@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user