Skip to content

Commit 5d6bbd9

Browse files
committed
refactor: update dependencies to use spring-ai-model and spring-ai-commons
Replace spring-ai-client-chat dependency with spring-ai-model in model implementations and memory repositories, and with spring-ai-commons in document readers. This change improves the dependency structure by having components depend on the appropriate abstraction level. Additional changes: - Add slf4j-api dependency to pdf-reader and spring-ai-retry - Move spring-ai-client-chat to test scope in spring-ai-ollama - Fix XML formatting in some pom.xml files Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 8a5f68d commit 5d6bbd9

File tree

25 files changed

+65
-49
lines changed

25 files changed

+65
-49
lines changed

document-readers/jsoup-reader/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
</scm>
4040

4141
<dependencies>
42+
4243
<dependency>
4344
<groupId>org.springframework.ai</groupId>
44-
<artifactId>spring-ai-client-chat</artifactId>
45+
<artifactId>spring-ai-commons</artifactId>
4546
<version>${project.parent.version}</version>
4647
</dependency>
4748

document-readers/markdown-reader/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependencies>
4141
<dependency>
4242
<groupId>org.springframework.ai</groupId>
43-
<artifactId>spring-ai-client-chat</artifactId>
43+
<artifactId>spring-ai-commons</artifactId>
4444
<version>${project.parent.version}</version>
4545
</dependency>
4646

document-readers/pdf-reader/pom.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
-->
1717

1818
<project xmlns="http://maven.apache.org/POM/4.0.0"
19-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2021
<modelVersion>4.0.0</modelVersion>
2122
<parent>
2223
<groupId>org.springframework.ai</groupId>
@@ -42,7 +43,7 @@
4243
<dependencies>
4344
<dependency>
4445
<groupId>org.springframework.ai</groupId>
45-
<artifactId>spring-ai-client-chat</artifactId>
46+
<artifactId>spring-ai-commons</artifactId>
4647
<version>${project.parent.version}</version>
4748
</dependency>
4849

@@ -58,6 +59,12 @@
5859
</exclusions>
5960
</dependency>
6061

62+
<dependency>
63+
<groupId>org.slf4j</groupId>
64+
<artifactId>slf4j-api</artifactId>
65+
<optional>true</optional>
66+
</dependency>
67+
6168
<!-- TESTING -->
6269
<dependency>
6370
<groupId>org.springframework.boot</groupId>
@@ -79,4 +86,4 @@
7986

8087
</dependencies>
8188

82-
</project>
89+
</project>

document-readers/tika-reader/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<dependencies>
4444
<dependency>
4545
<groupId>org.springframework.ai</groupId>
46-
<artifactId>spring-ai-client-chat</artifactId>
46+
<artifactId>spring-ai-commons</artifactId>
4747
<version>${project.parent.version}</version>
4848
</dependency>
4949

mcp/common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<dependency>
6868
<groupId>org.springframework.ai</groupId>
69-
<artifactId>spring-ai-client-chat</artifactId>
69+
<artifactId>spring-ai-model</artifactId>
7070
<version>${project.parent.version}</version>
7171
</dependency>
7272

memory/repository/spring-ai-model-chat-memory-repository-cassandra/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<dependencies>
4242
<dependency>
4343
<groupId>org.springframework.ai</groupId>
44-
<artifactId>spring-ai-client-chat</artifactId>
44+
<artifactId>spring-ai-model</artifactId>
4545
<version>${project.version}</version>
4646
</dependency>
4747

memory/repository/spring-ai-model-chat-memory-repository-neo4j/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
<dependencies>
4242
<dependency>
4343
<groupId>org.springframework.ai</groupId>
44-
<artifactId>spring-ai-client-chat</artifactId>
44+
<artifactId>spring-ai-model</artifactId>
4545
<version>${project.version}</version>
4646
</dependency>
47-
47+
4848
<dependency>
4949
<groupId>org.springframework.data</groupId>
5050
<artifactId>spring-data-neo4j</artifactId>

models/spring-ai-anthropic/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<!-- production dependencies -->
4646
<dependency>
4747
<groupId>org.springframework.ai</groupId>
48-
<artifactId>spring-ai-client-chat</artifactId>
48+
<artifactId>spring-ai-model</artifactId>
4949
<version>${project.parent.version}</version>
5050
</dependency>
5151

models/spring-ai-azure-openai/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<!-- production dependencies -->
4444
<dependency>
4545
<groupId>org.springframework.ai</groupId>
46-
<artifactId>spring-ai-client-chat</artifactId>
46+
<artifactId>spring-ai-model</artifactId>
4747
<version>${project.parent.version}</version>
4848
</dependency>
4949

models/spring-ai-bedrock-converse/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<!-- production dependencies -->
4343
<dependency>
4444
<groupId>org.springframework.ai</groupId>
45-
<artifactId>spring-ai-client-chat</artifactId>
45+
<artifactId>spring-ai-model</artifactId>
4646
<version>${project.parent.version}</version>
4747
</dependency>
4848

0 commit comments

Comments
 (0)