Skip to content

Commit 315ffed

Browse files
committed
feat: add additionalMessages in CreateThreadAndRun
1 parent e31d1fd commit 315ffed

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
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.35</version>
9+
<version>0.23.36</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212
<artifactId>openai-api</artifactId>

api/src/main/java/com/theokanning/openai/assistants/run/CreateThreadAndRunRequest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.theokanning.openai.assistants.IUssrRequest;
88
import com.theokanning.openai.assistants.assistant.Tool;
99
import com.theokanning.openai.assistants.assistant.ToolResources;
10+
import com.theokanning.openai.assistants.message.MessageRequest;
1011
import com.theokanning.openai.assistants.thread.ThreadRequest;
1112
import com.theokanning.openai.completion.chat.ChatResponseFormat;
1213
import lombok.AllArgsConstructor;
@@ -47,6 +48,12 @@ public class CreateThreadAndRunRequest implements IUssrRequest {
4748

4849
private Map<String, String> metadata;
4950

51+
/**
52+
* Adds additional messages to the thread before creating the run.
53+
*/
54+
@JsonProperty("additional_messages")
55+
List<MessageRequest> additionalMessages;
56+
5057

5158
/**
5259
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.

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

0 commit comments

Comments
 (0)