feat: remove default language header (#83)

This commit is contained in:
Tomsun28 2026-03-09 16:33:00 +08:00 committed by GitHub
parent 07f3e38fda
commit 5e754f837a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 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.3.0</version>
<version>0.3.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.3.0'
implementation 'ai.z.openapi:zai-sdk:0.3.3'
}
```

View file

@ -30,7 +30,7 @@ Z.ai AI 平台官方 Java SDK提供统一接口访问强大的AI能力
<dependency>
<groupId>ai.z.openapi</groupId>
<artifactId>zai-sdk</artifactId>
<version>0.3.0</version>
<version>0.3.3</version>
</dependency>
```
@ -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'
}
```

View file

@ -40,8 +40,7 @@ public class HttpRequestInterceptor implements Interceptor {
.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<String, String> entry : config.getCustomHeaders().entrySet()) {
request.addHeader(entry.getKey(), entry.getValue());

View file

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