diff --git a/README.md b/README.md
index 1b61c79..2271970 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@ Add the following dependency to your `pom.xml`:
ai.z.openapi
zai-sdk
- 0.0.2
+ 0.0.3
```
@@ -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()),
diff --git a/README_CN.md b/README_CN.md
index 21626ed..01f8134 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -30,7 +30,7 @@ Z.ai AI 平台官方 Java SDK,提供统一接口访问强大的AI能力,包
ai.z.openapi
zai-sdk
- 0.0.2
+ 0.0.3
```
@@ -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'
}
```
diff --git a/Release-Note.md b/Release-Note.md
index e6c7e9f..4856d9b 100644
--- a/Release-Note.md
+++ b/Release-Note.md
@@ -1,4 +1,11 @@
# Release Notes
### 0.0.2
-- ✅ Initial the Z.ai sdk refer from ZHIPU sdk
\ No newline at end of file
+- ✅ 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)
\ No newline at end of file
diff --git a/core/src/main/java/ai/z/openapi/core/token/HttpRequestInterceptor.java b/core/src/main/java/ai/z/openapi/core/token/HttpRequestInterceptor.java
index ba3f550..89ba343 100644
--- a/core/src/main/java/ai/z/openapi/core/token/HttpRequestInterceptor.java
+++ b/core/src/main/java/ai/z/openapi/core/token/HttpRequestInterceptor.java
@@ -40,7 +40,7 @@ public Response intercept(Chain chain) throws IOException {
.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 entry : config.getCustomHeaders().entrySet()) {
diff --git a/pom.xml b/pom.xml
index 4696a27..b39938f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,7 +45,7 @@
- 0.0.2
+ 0.0.3
8
UTF-8
UTF-8