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!spring-doc.cn

Refer to the Dependency Management section to add the Spring AI BOM to your build file.
Property Description Default

spring.ai.retry.max-attemptsspring-doc.cn

Maximum number of retry attempts.spring-doc.cn

10spring-doc.cn

spring.ai.retry.backoff.initial-intervalspring-doc.cn

Initial sleep duration for the exponential backoff policy.spring-doc.cn

2 sec.spring-doc.cn

spring.ai.retry.backoff.multiplierspring-doc.cn

Backoff interval multiplier.spring-doc.cn

5spring-doc.cn

spring.ai.retry.backoff.max-intervalspring-doc.cn

Maximum backoff duration.spring-doc.cn

3 min.spring-doc.cn

spring.ai.retry.on-client-errorsspring-doc.cn

If false, throw a NonTransientAiException, and do not attempt retry for 4xx client error codesspring-doc.cn

falsespring-doc.cn

spring.ai.retry.exclude-on-http-codesspring-doc.cn

List of HTTP status codes that should not trigger a retry (e.g. to throw NonTransientAiException).spring-doc.cn

emptyspring-doc.cn

spring.ai.retry.on-http-codesspring-doc.cn

List of HTTP status codes that should trigger a retry (e.g. to throw TransientAiException).spring-doc.cn

emptyspring-doc.cn

Property Description Default

spring.ai.qianfan.base-urlspring-doc.cn

The URL to connect tospring-doc.cn

aip.baidubce.com/rpc/2.0/ai_customspring-doc.cn

spring.ai.qianfan.api-keyspring-doc.cn

The API Keyspring-doc.cn

-spring-doc.cn

spring.ai.qianfan.secret-keyspring-doc.cn

The Secret Keyspring-doc.cn

-spring-doc.cn

Property Description Default

spring.ai.qianfan.embedding.enabledspring-doc.cn

Enable QianFan embedding client.spring-doc.cn

truespring-doc.cn

spring.ai.qianfan.embedding.base-urlspring-doc.cn

Optional overrides the spring.ai.qianfan.base-url to provide embedding specific urlspring-doc.cn

-spring-doc.cn

spring.ai.qianfan.embedding.api-keyspring-doc.cn

Optional overrides the spring.ai.qianfan.api-key to provide embedding specific api-keyspring-doc.cn

-spring-doc.cn

spring.ai.qianfan.embedding.secret-keyspring-doc.cn

Optional overrides the spring.ai.qianfan.secret-key to provide embedding specific secret-keyspring-doc.cn

-spring-doc.cn

spring.ai.qianfan.embedding.options.modelspring-doc.cn

The model to usespring-doc.cn

bge_large_zhspring-doc.cn

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.