docs: update readme (#71)

This commit is contained in:
Tomsun28 2025-12-24 18:28:16 +08:00 committed by GitHub
parent 82bead2e4f
commit 10e38ad5e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -78,10 +78,10 @@ import ai.z.openapi.core.Constants;
// export ZAI_API_KEY=your.api.key // export ZAI_API_KEY=your.api.key
// For Z.ai platform https://api.z.ai/api/paas/v4/ // For Z.ai platform https://api.z.ai/api/paas/v4/
ZaiClient client = ZaiClient.builder().build(); ZaiClient client = ZaiClient.builder().ofZAI().build();
// For ZHIPU AI platform https://open.bigmodel.cn/api/paas/v4/ // For ZHIPU AI platform https://open.bigmodel.cn/api/paas/v4/
ZhipuAiClient zhipuClient = ZhipuAiClient.builder().build(); ZhipuAiClient zhipuClient = ZhipuAiClient.builder().ofZHIPU().build();
// Or set the api-key by code // Or set the api-key by code

View file

@ -78,10 +78,10 @@ import ai.z.openapi.core.Constants;
// export ZAI_API_KEY=your.api.key // export ZAI_API_KEY=your.api.key
// 使用 Z.ai 平台客户端 https://api.z.ai/api/paas/v4/ // 使用 Z.ai 平台客户端 https://api.z.ai/api/paas/v4/
ZaiClient client = ZaiClient.builder().build(); ZaiClient client = ZaiClient.builder().ofZAI().build();
// 使用 智谱 AI 平台客户端 https://open.bigmodel.cn/api/paas/v4/ // 使用 智谱 AI 平台客户端 https://open.bigmodel.cn/api/paas/v4/
ZhipuAiClient zhipuClient = ZhipuAiClient.builder().build(); ZhipuAiClient zhipuClient = ZhipuAiClient.builder().ofZHIPU().build();
// 或代码设置凭证 // 或代码设置凭证
ZaiClient client = ZaiClient.builder() ZaiClient client = ZaiClient.builder()