This version is still in development and is not considered stable yet. For the latest snapshot version, please use Spring AI 1.0.0-SNAPSHOT! |
Refer to the Dependency Management section to add the Spring AI BOM to your build file. |
Property |
Description |
Default |
spring.ai.zhipuai.image.enabled |
Enable ZhiPuAI image model. |
true |
spring.ai.zhipuai.image.base-url |
Optional overrides the spring.ai.zhipuai.base-url to provide chat specific url |
- |
spring.ai.zhipuai.image.api-key |
Optional overrides the spring.ai.zhipuai.api-key to provide chat specific api-key |
- |
spring.ai.zhipuai.image.options.model |
The model to use for image generation. |
cogview-3 |
spring.ai.zhipuai.image.options.user |
A unique identifier representing your end-user, which can help ZhiPuAI to monitor and detect abuse. |
- |
Property |
Description |
Default |
spring.ai.zhipuai.base-url |
The URL to connect to |
|
spring.ai.zhipuai.api-key |
The API Key |
- |
Property | Description | Default |
---|---|---|
spring.ai.retry.max-attempts |
Maximum number of retry attempts. |
10 |
spring.ai.retry.backoff.initial-interval |
Initial sleep duration for the exponential backoff policy. |
2 sec. |
spring.ai.retry.backoff.multiplier |
Backoff interval multiplier. |
5 |
spring.ai.retry.backoff.max-interval |
Maximum backoff duration. |
3 min. |
spring.ai.retry.on-client-errors |
If false, throw a NonTransientAiException, and do not attempt retry for |
false |
spring.ai.retry.exclude-on-http-codes |
List of HTTP status codes that should not trigger a retry (e.g. to throw NonTransientAiException). |
empty |
spring.ai.retry.on-http-codes |
List of HTTP status codes that should trigger a retry (e.g. to throw TransientAiException). |
empty |
In addition to the model specific ZhiPuAiImageOptions you can use a portable ImageOptions instance, created with the ImageOptionsBuilder#builder(). |