Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the following dependency to your `pom.xml`:
<dependency>
<groupId>ai.z.openapi</groupId>
<artifactId>zai-sdk</artifactId>
<version>0.1.0</version>
<version>0.1.3</version>
</dependency>
```

Expand All @@ -39,7 +39,7 @@ Add the following dependency to your `build.gradle` (for Groovy DSL):

```groovy
dependencies {
implementation 'ai.z.openapi:zai-sdk:0.1.0'
implementation 'ai.z.openapi:zai-sdk:0.1.3'
}
```

Expand Down
4 changes: 2 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Z.ai AI 平台官方 Java SDK,提供统一接口访问强大的AI能力,包
<dependency>
<groupId>ai.z.openapi</groupId>
<artifactId>zai-sdk</artifactId>
<version>0.1.0</version>
<version>0.1.3</version>
</dependency>
```

Expand All @@ -39,7 +39,7 @@ Z.ai AI 平台官方 Java SDK,提供统一接口访问强大的AI能力,包

```groovy
dependencies {
implementation 'ai.z.openapi:zai-sdk:0.1.0'
implementation 'ai.z.openapi:zai-sdk:0.1.3'
}
```

Expand Down
10 changes: 10 additions & 0 deletions core/src/main/java/ai/z/openapi/core/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ private Constants() {
*/
public static final String ModelGLM4_6 = "glm-4.6";

/**
* GLM-4.6v model code
*/
public static final String ModelGLM4_6V = "glm-4.6v";

/**
* GLM-4.6v flash model code
*/
public static final String ModelGLM4_6V_FLASH = "glm-4.6v-flash";

/**
* GLM-4.6-air model code
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public class ChatMessage {
*/
private Object content;

/**
* It's recommended to return the model's reasoning_content in next request to achieve
* better results in multi-turn conversations.
*/
@JsonProperty("reasoning_content")
private String reasoningContent;

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</scm>

<properties>
<revision>0.1.1</revision>
<revision>0.1.3</revision>
<java.version>8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void main(String[] args) throws IOException {

// Create chat request
ChatCompletionCreateParams streamRequest = ChatCompletionCreateParams.builder()
.model("glm-4.5v")
.model("glm-4.6v")
.messages(Arrays.asList(
ChatMessage.builder()
.role(ChatMessageRole.USER.value())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import ai.z.openapi.ZhipuAiClient;
import ai.z.openapi.service.model.*;
import ai.z.openapi.core.Constants;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void main(String[] args) {
.build();

ChatCompletionCreateParams request = ChatCompletionCreateParams.builder()
.model("glm-4.5v")
.model("glm-4.6v")
.messages(Arrays.asList(
ChatMessage.builder()
.role(ChatMessageRole.USER.value())
Expand Down
Loading