Skip to content

Commit 1c0c77b

Browse files
committed
Remove a redundant code line
1 parent 0c4d6ab commit 1c0c77b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ private ChatResponse toChatResponse(ChatCompletionResponse chatCompletion) {
195195
.stream()
196196
.filter(content -> content.type() != ContentBlock.Type.TOOL_USE)
197197
.map(content -> {
198-
new AssistantMessage(content.text(), Map.of());
199198
return new Generation(new AssistantMessage(content.text(), Map.of()),
200199
ChatGenerationMetadata.from(chatCompletion.stopReason(), null));
201200
})

0 commit comments

Comments
 (0)