Skip to content

Commit

Permalink
Merge pull request #72 from fastjrun/main
Browse files Browse the repository at this point in the history
Batch 部分属性由Integer改为Long,可以兼容智谱清言的批处理返回对象。
  • Loading branch information
Lambdua authored Nov 8, 2024
2 parents d435a8e + 5533420 commit d976531
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions api/src/main/java/com/theokanning/openai/batch/Batch.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,55 +65,55 @@ public class Batch {
* The Unix timestamp (in seconds) for when the batch was created.
*/
@JsonProperty("created_at")
Integer createdAt;
Long createdAt;

/**
* The Unix timestamp (in seconds) for when the batch started processing.
*/
@JsonProperty("in_progress_at")
Integer inProgressAt;
Long inProgressAt;

/**
* The Unix timestamp (in seconds) for when the batch will expire.
*/
@JsonProperty("expires_at")
Integer expiresAt;
Long expiresAt;

/**
* The Unix timestamp (in seconds) for when the batch started finalizing.
*/
@JsonProperty("finalizing_at")
Integer finalizingAt;
Long finalizingAt;

/**
* The Unix timestamp (in seconds) for when the batch was completed.
*/
@JsonProperty("completed_at")
Integer completedAt;
Long completedAt;

/**
* The Unix timestamp (in seconds) for when the batch failed.
*/
@JsonProperty("failed_at")
Integer failedAt;
Long failedAt;

/**
* The Unix timestamp (in seconds) for when the batch expired.
*/
@JsonProperty("expired_at")
Integer expiredAt;
Long expiredAt;

/**
* The Unix timestamp (in seconds) for when the batch started cancelling.
*/
@JsonProperty("cancelling_at")
Integer cancellingAt;
Long cancellingAt;

/**
* The Unix timestamp (in seconds) for when the batch was cancelled.
*/
@JsonProperty("cancelled_at")
Integer cancelledAt;
Long cancelledAt;

/**
* The request counts for different statuses within the batch.
Expand Down

0 comments on commit d976531

Please sign in to comment.