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.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 |
Property | Description | Default |
---|---|---|
spring.ai.qianfan.base-url |
The URL to connect to |
|
spring.ai.qianfan.api-key |
The API Key |
- |
spring.ai.qianfan.secret-key |
The Secret Key |
- |
Property | Description | Default |
---|---|---|
spring.ai.qianfan.embedding.enabled |
Enable QianFan embedding client. |
true |
spring.ai.qianfan.embedding.base-url |
Optional overrides the spring.ai.qianfan.base-url to provide embedding specific url |
- |
spring.ai.qianfan.embedding.api-key |
Optional overrides the spring.ai.qianfan.api-key to provide embedding specific api-key |
- |
spring.ai.qianfan.embedding.secret-key |
Optional overrides the spring.ai.qianfan.secret-key to provide embedding specific secret-key |
- |
spring.ai.qianfan.embedding.options.model |
The model to use |
bge_large_zh |
You can override the common spring.ai.qianfan.base-url , spring.ai.qianfan.embedding.api-key and spring.ai.qianfan.embedding.secret-key for the ChatClient and EmbeddingClient implementations.
The spring.ai.qianfan.embedding.base-url , spring.ai.qianfan.embedding.api-key and spring.ai.qianfan.embedding.secret-key properties if set take precedence over the common properties.
Similarly, the spring.ai.qianfan.embedding.base-url , spring.ai.qianfan.embedding.api-key and spring.ai.qianfan.embedding.secret-key properties if set take precedence over the common properties.
This is useful if you want to use different QianFan accounts for different models and different model endpoints.
|
All properties prefixed with spring.ai.qianfan.embedding.options can be overridden at runtime by adding a request specific Runtime Options to the EmbeddingRequest call.
|
Refer to the Dependency Management section to add the Spring AI BOM to your build file. |
The spring-ai-qianfan dependency provides access also to the QianFanChatModel .
For more information about the QianFanChatModel refer to the QianFan Chat Client section.
|