Skip to content

Conversation

@alexheifetz
Copy link
Contributor

This pull request updates the pom.xml configuration to improve how dependencies for OpenAI and Anthropic model support are managed. Instead of always including these dependencies, they are now conditionally added via Maven profiles that activate only when the corresponding API key environment variable is present. This makes the build more flexible and secure by only including necessary dependencies when required.

Dependency management improvements:

  • Removed the unconditional inclusion of embabel-agent-starter-openai and commented-out Anthropic dependencies from the main dependency list.
  • Added two Maven profiles, openai-models and anthropic-models, which automatically add the respective dependencies only if OPENAI_API_KEY or ANTHROPIC_API_KEY environment variables are set.Environment

@alexheifetz alexheifetz requested a review from johnsonr November 11, 2025 09:35
@alexheifetz alexheifetz changed the title Active OpenAi or Anthropic Templates only if Kyes are part of Activate OpenAi or Anthropic Templates only if Kyes are part of Nov 11, 2025
@alexheifetz alexheifetz changed the title Activate OpenAi or Anthropic Templates only if Kyes are part of Activate OpenAi and Anthropic only if Keys are present. Nov 11, 2025
@alexheifetz
Copy link
Contributor Author

Will merge it, we can take alternate solution after the java-template tests are fixed.

@alexheifetz alexheifetz merged commit dfd0c36 into main Nov 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants