Testcontainers
Spring AI 為透過 Testcontainers 執行的模型服務或向量儲存提供了 Spring Boot 自動配置,以便建立連線。要啟用它,請將以下依賴項新增到專案的 Maven pom.xml
檔案中
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-spring-boot-testcontainers</artifactId>
</dependency>
或新增到 Gradle 的 build.gradle
構建檔案中。
dependencies {
implementation 'org.springframework.ai:spring-ai-spring-boot-testcontainers'
}
請參閱依賴管理部分,將 Spring AI BOM 新增到您的構建檔案中。 |
服務連線
spring-ai-spring-boot-testcontainers
模組中提供了以下服務連線工廠
連線詳情 | 匹配項 |
---|---|
|
型別為 |
|
型別為 |
|
型別為 |
|
型別為 |
|
型別為 |
|
型別為 |
|
型別為 |
|
型別為 |
|
型別為 |