Skip to content

Commit dfd0c36

Browse files
authored
Active OpenAi or Anthropic Templates only if Kyes are part of (#49)
Environment
1 parent 5c6fe28 commit dfd0c36

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
lines changed

pom.xml

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,6 @@
3030
<version>${embabel-agent.version}</version>
3131
</dependency>
3232

33-
<dependency>
34-
<groupId>com.embabel.agent</groupId>
35-
<artifactId>embabel-agent-starter-openai</artifactId>
36-
<version>${embabel-agent.version}</version>
37-
</dependency>
38-
39-
<!-- Uncomment to use Anthropic models -->
40-
<!-- <dependency>-->
41-
<!-- <groupId>com.embabel.agent</groupId>-->
42-
<!-- <artifactId>embabel-agent-starter-anthropic</artifactId>-->
43-
<!-- <version>${embabel-agent.version}</version>-->
44-
<!-- </dependency>-->
45-
4633
<dependency>
4734
<groupId>com.embabel.agent</groupId>
4835
<artifactId>embabel-agent-starter-shell</artifactId>
@@ -75,6 +62,39 @@
7562
</plugins>
7663
</build>
7764

65+
<profiles>
66+
<profile>
67+
<id>openai-models</id>
68+
<activation>
69+
<property>
70+
<name>env.OPENAI_API_KEY</name>
71+
</property>
72+
</activation>
73+
<dependencies>
74+
<dependency>
75+
<groupId>com.embabel.agent</groupId>
76+
<artifactId>embabel-agent-starter-openai</artifactId>
77+
<version>${embabel-agent.version}</version>
78+
</dependency>
79+
</dependencies>
80+
</profile>
81+
<profile>
82+
<id>anthropic-models</id>
83+
<activation>
84+
<property>
85+
<name>env.ANTHROPIC_API_KEY</name>
86+
</property>
87+
</activation>
88+
<dependencies>
89+
<dependency>
90+
<groupId>com.embabel.agent</groupId>
91+
<artifactId>embabel-agent-starter-anthropic</artifactId>
92+
<version>${embabel-agent.version}</version>
93+
</dependency>
94+
</dependencies>
95+
</profile>
96+
</profiles>
97+
7898
<!-- Uncomment these lines to enable Embabel repositories and use snapshots -->
7999
<!-- <repositories>-->
80100
<!-- <repository>-->

0 commit comments

Comments
 (0)