From b64e1043e333fa79f637d55887171b4dc40b5320 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Wed, 13 Aug 2025 16:18:58 +0800 Subject: [PATCH 1/5] chore: release new version 0.0.3 --- README.md | 4 ++-- README_CN.md | 4 ++-- .../java/ai/z/openapi/core/token/HttpRequestInterceptor.java | 2 +- pom.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1b61c79..43e2a9e 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' } ``` 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/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 From 2794a6a4829f04e2e276764d59ee9d31fadbe038 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Wed, 13 Aug 2025 16:20:17 +0800 Subject: [PATCH 2/5] chore: release new version 0.0.3 --- Release-Note.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 From ed15edff9429bbddcf41038d3e53d14ac78e3179 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Wed, 13 Aug 2025 16:23:33 +0800 Subject: [PATCH 3/5] chore: release new version 0.0.3 --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 43e2a9e..2271970 100644 --- a/README.md +++ b/README.md @@ -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()), From 871428a87c7691df544854fcf399b656cd07c235 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Wed, 13 Aug 2025 16:38:02 +0800 Subject: [PATCH 4/5] chore: release new version 0.0.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b39938f..c3f5428 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ - 0.0.3 + 0.0.2.1-SNAPSHOT 8 UTF-8 UTF-8 From 6aa29b8ea279e50dac5fe140bd6752c4fabdc2c7 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Wed, 13 Aug 2025 16:51:26 +0800 Subject: [PATCH 5/5] chore: release new version 0.0.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c3f5428..b39938f 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ - 0.0.2.1-SNAPSHOT + 0.0.3 8 UTF-8 UTF-8