Skip to content

Commit aadf4c9

Browse files
muverystrongfengyizhu
authored andcommitted
feat: take domain add minAgeSeconds attr
1 parent e40552f commit aadf4c9

6 files changed

Lines changed: 14 additions & 5 deletions

File tree

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.24.4</version>
9+
<version>0.24.5</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212
<artifactId>openai-api</artifactId>

api/src/main/java/com/theokanning/openai/queue/Take.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.theokanning.openai.queue;
22

3+
import com.fasterxml.jackson.annotation.JsonProperty;
34
import lombok.AllArgsConstructor;
45
import lombok.Builder;
56
import lombok.Data;
@@ -32,14 +33,22 @@ public class Take {
3233
/**
3334
* worker process timeout for a task
3435
*/
36+
@JsonProperty("process_timeout")
3537
private int processTimeout;
3638
/**
3739
* worker process max retries for a task
3840
*/
41+
@JsonProperty("process_max_retries")
3942
private int processMaxRetries;
4043
/**
4144
* The strategy for taking tasks from queues (default: "fifo") Supported strategies: "fifo", "round_robin", "active_passive"
4245
*/
4346
@Builder.Default
4447
private String strategy = "fifo";
48+
49+
/**
50+
* Only retrieve tasks created within the last N seconds (0 means no time restriction)
51+
*/
52+
@JsonProperty("min_age_seconds")
53+
private long minAgeSeconds;
4554
}

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.24.4</version>
9+
<version>0.24.5</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.ke</groupId>
88
<artifactId>example</artifactId>
9-
<version>0.24.4</version>
9+
<version>0.24.5</version>
1010
<name>example</name>
1111

1212
<properties>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>top.bella</groupId>
77
<artifactId>openai-java</artifactId>
8-
<version>0.24.4</version>
8+
<version>0.24.5</version>
99
<packaging>pom</packaging>
1010
<description>openai java 版本</description>
1111
<name>openai-java</name>

service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.24.4</version>
9+
<version>0.24.5</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

0 commit comments

Comments
 (0)