Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
* @author Eddú Meléndez
* @author Thomas Vitale
* @author Soby Chacko
* @author Jonghoon Park
* @since 0.8.1
*/
@Testcontainers
@EnabledIfEnvironmentVariables({ @EnabledIfEnvironmentVariable(named = "MISTRAL_AI_API_KEY", matches = ".+"),
@EnabledIfEnvironmentVariable(named = "OPENAI_API_KEY", matches = ".+") })
@EnabledIfEnvironmentVariable(named = "MISTRAL_AI_API_KEY", matches = ".+")
public class QdrantVectorStoreIT extends BaseVectorStoreTests {

private static final String COLLECTION_NAME = "test_collection";
Expand All @@ -73,8 +73,7 @@ public class QdrantVectorStoreIT extends BaseVectorStoreTests {
static QdrantContainer qdrantContainer = new QdrantContainer(QdrantImage.DEFAULT_IMAGE);

private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withUserConfiguration(TestApplication.class)
.withPropertyValues("spring.ai.openai.apiKey=" + System.getenv("OPENAI_API_KEY"));
.withUserConfiguration(TestApplication.class);

List<Document> documents = List.of(
new Document("Spring AI rocks!! Spring AI rocks!! Spring AI rocks!! Spring AI rocks!! Spring AI rocks!!",
Expand Down