Skip to content

Commit 42b0956

Browse files
committed
feat: promptCacheKey
1 parent 30fbec7 commit 42b0956

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

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.23.96</version>
9+
<version>0.23.97</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212
<artifactId>openai-api</artifactId>

api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionRequest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,10 @@ public class ChatCompletionRequest {
189189
*/
190190
@JsonProperty("reasoning_effort")
191191
private String reasoningEffort;
192+
193+
/**
194+
* Cache key for system prompt.
195+
*/
196+
@JsonProperty("prompt_cache_key")
197+
private String promptCacheKey;
192198
}

api/src/main/java/com/theokanning/openai/response/CreateResponseRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class CreateResponseRequest implements IUssrRequest {
7070
private String previousResponseId;
7171

7272
/**
73-
* Cache key for response optimization.
73+
* Cache key for system prompt.
7474
*/
7575
@JsonProperty("prompt_cache_key")
7676
private String promptCacheKey;

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.23.96</version>
9+
<version>0.23.97</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

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.23.96</version>
8+
<version>0.23.97</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.23.96</version>
9+
<version>0.23.97</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

0 commit comments

Comments
 (0)