Skip to content

Commit edc7003

Browse files
sobychackomarkpollack
authored andcommitted
Remove Boot dependency from core anthropic and watson modules
Fixes: #1591
1 parent 6688634 commit edc7003

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

models/spring-ai-anthropic/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@
5555
<version>${project.parent.version}</version>
5656
</dependency>
5757

58-
<!-- NOTE: Required only by the @ConstructorBinding. -->
59-
<dependency>
60-
<groupId>org.springframework.boot</groupId>
61-
<artifactId>spring-boot</artifactId>
62-
</dependency>
63-
6458
<dependency>
6559
<groupId>io.rest-assured</groupId>
6660
<artifactId>json-path</artifactId>

models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatOptions.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.springframework.ai.chat.prompt.ChatOptions;
3333
import org.springframework.ai.model.function.FunctionCallback;
3434
import org.springframework.ai.model.function.FunctionCallingOptions;
35-
import org.springframework.boot.context.properties.NestedConfigurationProperty;
3635
import org.springframework.util.Assert;
3736

3837
/**
@@ -61,7 +60,6 @@ public class AnthropicChatOptions implements ChatOptions, FunctionCallingOptions
6160
* disabled by default. Use the enableFunctions to set the functions from the registry
6261
* to be used by the ChatModel chat completion requests.
6362
*/
64-
@NestedConfigurationProperty
6563
@JsonIgnore
6664
private List<FunctionCallback> functionCallbacks = new ArrayList<>();
6765

@@ -76,7 +74,6 @@ public class AnthropicChatOptions implements ChatOptions, FunctionCallingOptions
7674
* functions is set in a prompt options, then the enabled functions are only active
7775
* for the duration of this prompt execution.
7876
*/
79-
@NestedConfigurationProperty
8077
@JsonIgnore
8178
private Set<String> functions = new HashSet<>();
8279

models/spring-ai-watsonx-ai/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@
3838

3939
<dependencies>
4040

41-
<!-- NOTE: Required only by the @ConstructorBinding. -->
42-
<dependency>
43-
<groupId>org.springframework.boot</groupId>
44-
<artifactId>spring-boot</artifactId>
45-
</dependency>
46-
4741
<dependency>
4842
<groupId>org.springframework.ai</groupId>
4943
<artifactId>spring-ai-core</artifactId>

0 commit comments

Comments
 (0)