-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
Bug description
Can't get complete content by Message:getText() in ChatMemory.
Environment
1.0.0-SNAPSHOT(1.0.0-20250512.234548-238)
Steps to reproduce
Call streaming API(OpenApiChatModel).
Expected behavior
Store the answer content.
Minimal Complete Reproducible example
- pom.xml
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-model-openai</artifactId>
</dependency>
- code
chatClient.prompt()
.user(userInput).advisors(MessageChatMemoryAdvisor.builder(chatService).protectFromBlocking(true).build()).advisors(advisorSpec -> advisorSpec.param(ChatMemory.CONVERSATION_ID, conversationId))
.stream().chatResponse();
The chatService is used for storing content.
Run, and I have identified an issue, the ChatMemory.add(String conversationId, List messages) parameter in Message:getText has no content.
Metadata
Metadata
Assignees
Labels
No labels