docs: update readme (#71)
This commit is contained in:
parent
82bead2e4f
commit
10e38ad5e2
2 changed files with 4 additions and 4 deletions
|
|
@ -78,10 +78,10 @@ import ai.z.openapi.core.Constants;
|
|||
// export ZAI_API_KEY=your.api.key
|
||||
|
||||
// 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/
|
||||
ZhipuAiClient zhipuClient = ZhipuAiClient.builder().build();
|
||||
ZhipuAiClient zhipuClient = ZhipuAiClient.builder().ofZHIPU().build();
|
||||
|
||||
|
||||
// Or set the api-key by code
|
||||
|
|
|
|||
|
|
@ -78,10 +78,10 @@ import ai.z.openapi.core.Constants;
|
|||
// export ZAI_API_KEY=your.api.key
|
||||
|
||||
// 使用 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/
|
||||
ZhipuAiClient zhipuClient = ZhipuAiClient.builder().build();
|
||||
ZhipuAiClient zhipuClient = ZhipuAiClient.builder().ofZHIPU().build();
|
||||
|
||||
// 或代码设置凭证
|
||||
ZaiClient client = ZaiClient.builder()
|
||||
|
|
|
|||
Loading…
Reference in a new issue