Skip to content

Commit d976531

Browse files
authored
Merge pull request #72 from fastjrun/main
Batch 部分属性由Integer改为Long,可以兼容智谱清言的批处理返回对象。
2 parents d435a8e + 5533420 commit d976531

File tree

1 file changed

+9
-9
lines changed
  • api/src/main/java/com/theokanning/openai/batch

1 file changed

+9
-9
lines changed

api/src/main/java/com/theokanning/openai/batch/Batch.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,55 +65,55 @@ public class Batch {
6565
* The Unix timestamp (in seconds) for when the batch was created.
6666
*/
6767
@JsonProperty("created_at")
68-
Integer createdAt;
68+
Long createdAt;
6969

7070
/**
7171
* The Unix timestamp (in seconds) for when the batch started processing.
7272
*/
7373
@JsonProperty("in_progress_at")
74-
Integer inProgressAt;
74+
Long inProgressAt;
7575

7676
/**
7777
* The Unix timestamp (in seconds) for when the batch will expire.
7878
*/
7979
@JsonProperty("expires_at")
80-
Integer expiresAt;
80+
Long expiresAt;
8181

8282
/**
8383
* The Unix timestamp (in seconds) for when the batch started finalizing.
8484
*/
8585
@JsonProperty("finalizing_at")
86-
Integer finalizingAt;
86+
Long finalizingAt;
8787

8888
/**
8989
* The Unix timestamp (in seconds) for when the batch was completed.
9090
*/
9191
@JsonProperty("completed_at")
92-
Integer completedAt;
92+
Long completedAt;
9393

9494
/**
9595
* The Unix timestamp (in seconds) for when the batch failed.
9696
*/
9797
@JsonProperty("failed_at")
98-
Integer failedAt;
98+
Long failedAt;
9999

100100
/**
101101
* The Unix timestamp (in seconds) for when the batch expired.
102102
*/
103103
@JsonProperty("expired_at")
104-
Integer expiredAt;
104+
Long expiredAt;
105105

106106
/**
107107
* The Unix timestamp (in seconds) for when the batch started cancelling.
108108
*/
109109
@JsonProperty("cancelling_at")
110-
Integer cancellingAt;
110+
Long cancellingAt;
111111

112112
/**
113113
* The Unix timestamp (in seconds) for when the batch was cancelled.
114114
*/
115115
@JsonProperty("cancelled_at")
116-
Integer cancelledAt;
116+
Long cancelledAt;
117117

118118
/**
119119
* The request counts for different statuses within the batch.

0 commit comments

Comments
 (0)