chore: release new version 0.0.3 (#33)

This commit is contained in:
tomsun28 2025-08-13 17:08:36 +08:00 committed by GitHub
parent 550dd508f3
commit c881806d2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 11 deletions

View file

@ -30,7 +30,7 @@ Add the following dependency to your `pom.xml`:
<dependency>
<groupId>ai.z.openapi</groupId>
<artifactId>zai-sdk</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
</dependency>
```
@ -39,7 +39,7 @@ Add the following dependency to your `build.gradle` (for Groovy DSL):
```groovy
dependencies {
implementation 'ai.z.openapi:zai-sdk:0.0.2'
implementation 'ai.z.openapi:zai-sdk:0.0.3'
}
```
@ -170,10 +170,8 @@ if (response.isSuccess() && response.getFlowable() != null) {
data -> {
// Handle streaming chunk
if (data.getChoices() != null && !data.getChoices().isEmpty()) {
String content = data.getChoices().get(0).getDelta().getContent();
if (content != null) {
System.out.print(content);
}
Delta delta = data.getChoices().get(0).getDelta();
System.out.print(delta + "\n");
}
},
error -> System.err.println("\nStream error: " + error.getMessage()),

View file

@ -30,7 +30,7 @@ Z.ai AI 平台官方 Java SDK提供统一接口访问强大的AI能力
<dependency>
<groupId>ai.z.openapi</groupId>
<artifactId>zai-sdk</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
</dependency>
```
@ -39,7 +39,7 @@ Z.ai AI 平台官方 Java SDK提供统一接口访问强大的AI能力
```groovy
dependencies {
implementation 'ai.z.openapi:zai-sdk:0.0.2'
implementation 'ai.z.openapi:zai-sdk:0.0.3'
}
```

View file

@ -1,4 +1,11 @@
# Release Notes
### 0.0.2
- ✅ Initial the Z.ai sdk refer from ZHIPU sdk
- ✅ Initial the Z.ai sdk refer from ZHIPU sdk
### 0.0.3
- fix: update method calls and improve code clarity in README examples (#27)
- chore: add function call sample (#29)
- chore: update jackson version, add custom headers (#30)
- feat: add request watermark param (#32)
- feat: support reasoning_content (#31)

View file

@ -40,7 +40,7 @@ public class HttpRequestInterceptor implements Interceptor {
.newBuilder()
.header("Authorization", "Bearer " + accessToken)
.header("x-source-channel", source_channel)
.header("Zai-SDK-Ver", "0.0.2")
.header("Zai-SDK-Ver", "0.0.3")
.header("Accept-Language", "en-US,en");
if (Objects.nonNull(config.getCustomHeaders())) {
for (Map.Entry<String, String> entry : config.getCustomHeaders().entrySet()) {

View file

@ -45,7 +45,7 @@
</scm>
<properties>
<revision>0.0.2</revision>
<revision>0.0.3</revision>
<java.version>8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>