File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
src/main/java/com/javaaidev/chatagent/springai Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.llmagentspec</groupId >
88 <artifactId >llm-agent-spec</artifactId >
9- <version >0.2.1 </version >
9+ <version >0.2.2 </version >
1010 </parent >
1111
1212 <artifactId >chat-agent-model</artifactId >
Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66 <groupId >com.javaaidev.llmagentspec</groupId >
77 <artifactId >llm-agent-spec</artifactId >
8- <version >0.2.1 </version >
8+ <version >0.2.2 </version >
99 <packaging >pom</packaging >
1010 <name >LLM Agent Spec</name >
1111 <description >Spec of LLM Agents</description >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.llmagentspec</groupId >
88 <artifactId >llm-agent-spec</artifactId >
9- <version >0.2.1 </version >
9+ <version >0.2.2 </version >
1010 </parent >
1111
1212 <artifactId >spring-ai-adapter</artifactId >
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public static Flux<ServerSentEvent<ChatAgentResponse>> toStreamingResponse(
7878 Flux <ChatResponse > chatResponse ) {
7979 return chatResponse .concatMap (
8080 response -> Flux .fromIterable (response .getResults ()))
81- .filter (generation -> Objects .nonNull (generation .getOutput ().getText ()))
81+ .filter (generation -> Objects .nonNull (generation .getOutput ()) && Objects . nonNull ( generation . getOutput () .getText ()))
8282 .map (generation -> generation .getOutput ().getText ())
8383 .map (text -> ServerSentEvent .<ChatAgentResponse >builder ()
8484 .data (new ChatAgentResponse (
You can’t perform that action at this time.
0 commit comments