这是indexloc提供的服务,不要输入任何密码
Skip to content

Batch 部分属性由Integer改为Long,可以兼容智谱清言的批处理返回对象。 #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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