Replies: 1 comment
-
Addressed in this commit - 318bdfc by. @eddumelendez |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Spring AI: 1.0.0.M7
Java: 17
Previsouly (1.0.0.M6)
spring:
ai:
chat:
memory:
cassandra:
keyspace:
alone was enough to provide an instance of CassandraChatMemory. After I upgraded from 1.0.0.M6 to 1.0.0.M7, I got the error of
No qualifying bean of type 'org.springframework.ai.chat.memory.ChatMemory' available.
Can someone tells me how should I configure pom.xml so that I can autowire a bean of CassandraChatMemory while outsourcing its configuration to application.xml??
Currently, spring part of my pom.xml is:
org.springframework.boot
spring-boot-starter-webflux
org.springframework.boot
spring-boot-starter-data-cassandra-reactive
org.springframework.ai
spring-ai-starter-model-openai
org.springframework.ai
spring-ai-model-chat-memory-cassandra
Below are what I did and my findings so far:
Question wasn't in M6:
I noticed that CassandraChatMemoryProperties.java was included in
org.springframework.ai:spring-ai-spring-boot-autoconfigure:1.0.0-M6,
which was imported by me as a part of
org.springframework.ai:spring-ai-openai-spring-boot-starter:1.0.0-M6.
Difference in M7:
Now
org.springframework.ai:spring-ai-starter-model-openai:1.0.0-M7 no longer include spring-ai-spring-boot-autoconfigure, and thus no longer include CassandraChatMemoryProperties.java
pom.xml:
org.springframework.ai
spring-ai-starter-model-chat-memory-cassandra
will give me an error of
Could not find artifact org.springframework.ai:spring-ai-starter-model-chat-memory-cassandra:pom:1.0.0-M7 in spring-milestones (https://repo.spring.io/milestone)
spring-ai-bom-1.0.0-M7.pom
I noticed that spring-ai-starter-model-chat-memory-jdbc is included in spring-ai-bom-1.0.0-M7.pom but not spring-ai-starter-model-chat-memory-cassandra.
Beta Was this translation helpful? Give feedback.
All reactions