From da8781e51333b9e8f45d7e921bbdf019c1f740c1 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Fri, 27 Feb 2026 14:00:05 +0800 Subject: [PATCH 1/2] remove the default lang headers --- .../java/ai/z/openapi/core/token/HttpRequestInterceptor.java | 3 +-- pom.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 e9398e0..dd9974a 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,8 +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.1.0") - .header("Accept-Language", "en-US,en"); + .header("Zai-SDK-Ver", "0.3.3"); if (Objects.nonNull(config.getCustomHeaders())) { for (Map.Entry entry : config.getCustomHeaders().entrySet()) { request.addHeader(entry.getKey(), entry.getValue()); diff --git a/pom.xml b/pom.xml index 1265fad..5538220 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ - 0.3.3 + 0.3.4 8 UTF-8 UTF-8 From 3a43b4017cb059c52befa6e039f5978d6d26b1ba Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Fri, 27 Feb 2026 14:01:11 +0800 Subject: [PATCH 2/2] remove the default lang headers --- README.md | 4 ++-- README_CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 939476a..faaf9f7 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.3.0 + 0.3.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.3.0' + implementation 'ai.z.openapi:zai-sdk:0.3.3' } ``` diff --git a/README_CN.md b/README_CN.md index a25f57e..7e51f3b 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.3.0 + 0.3.3 ``` @@ -39,7 +39,7 @@ Z.ai AI 平台官方 Java SDK,提供统一接口访问强大的AI能力,包 ```groovy dependencies { - implementation 'ai.z.openapi:zai-sdk:0.3.0' + implementation 'ai.z.openapi:zai-sdk:0.3.3' } ```