chore: update async generate images sample (#75)
This commit is contained in:
parent
a0960d7c12
commit
a616028369
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ public class ImageGenerationAsyncExample {
|
||||||
// Create client, recommended to set API Key via environment variable
|
// Create client, recommended to set API Key via environment variable
|
||||||
// export ZAI_API_KEY=your.api_key
|
// export ZAI_API_KEY=your.api_key
|
||||||
// for Z.ai use the `ZaiClient`, for Zhipu AI use the ZhipuAiClient.builder().ofZHIPU().build()
|
// for Z.ai use the `ZaiClient`, for Zhipu AI use the ZhipuAiClient.builder().ofZHIPU().build()
|
||||||
ZaiClient client = ZaiClient.builder().baseUrl("https://dev.bigmodel.cn/api/paas/v4/").apiKey("08d9c717e10a4dbc8bd3963cb70aafe0.ZAMAdBKwQsrlAbcZ").build();
|
ZaiClient client = ZaiClient.builder().ofZAI().build();
|
||||||
|
|
||||||
generateAsyncImage(client);
|
generateAsyncImage(client);
|
||||||
client.close();
|
client.close();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue