Skip to content

docs(Readme): 声明智谱 Java SDK 不支持 Android、添加 Gradle Groovy 格式的依赖声明代码 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@
Java),让开发者更便捷的调用智谱开放API

## 简介
- <font color="red">**java sdk仍在开发测试阶段,有bug请留言联系**</font>
- <font color="red">**Java SDK仍在开发测试阶段,有bug请留言联系**</font>
- Java SDK当前不支持Android
- 对所有接口进行了类型封装,无需查阅API文档即可完成接入

## 安装

- 运行环境:JDK1.8+
- maven坐标
```
```xml
<dependency>
<groupId>cn.bigmodel.openapi</groupId>
<artifactId>oapi-java-sdk</artifactId>
<version>release-V4-2.3.0</version>
</dependency>
```

```groovy
dependencies {
implementation 'cn.bigmodel.openapi:oapi-java-sdk:release-V4-2.3.0'
}
```
- 运行单元测试依赖您环境变量中的APIKey和BaseUrl信息,建议您提前设置好环境变量;运行过程中会消耗APIKey对应账户下的少量token
```
export ZHIPUAI_BASE_URL=https://open.bigmodel.cn/api/paas/v4/ # 默认智谱开放平台API地址
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/zhipu/oapi/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Constants {
// 拟人模型
public static final String ModelCharGLM3= "charglm-3";

// 历史模型,建议尽快迁移至信模型
// 历史模型,建议尽快迁移至新模型
@Deprecated
public static final String ModelChatGLM3TURBO= "glm-3-turbo";

Expand Down