Skip to content

Conversation

@dev-jonghoonpark
Copy link
Contributor

@dev-jonghoonpark dev-jonghoonpark commented May 12, 2025

MariaDBStoreCustomNamesIT.java requires the OPENAI_API_KEY system environment variable.

public EmbeddingModel embeddingModel() {
return new OpenAiEmbeddingModel(OpenAiApi.builder().apiKey(System.getenv("OPENAI_API_KEY")).build());
}

However, it lacks the @EnabledIfEnvironmentVariable annotation, causing the test to fail.

I have added the annotation to resolve this issue.

@dev-jonghoonpark dev-jonghoonpark changed the title add EnabledIfEnvironmentVariable annotation to MariaDBStoreCustomNamesIT Add EnabledIfEnvironmentVariable annotation to MariaDBStoreCustomNamesIT May 12, 2025
@markpollack markpollack added this to the 1.0.0-RC1 milestone May 12, 2025
@sobychacko sobychacko merged commit 7b15e18 into spring-projects:main May 12, 2025
2 checks passed
@sobychacko
Copy link
Contributor

LGTM. Merged upstream. Thanks!

namsoo2 pushed a commit to namsoo2/spring-ai that referenced this pull request Jun 9, 2025
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants