Remove a redundant code line

This commit is contained in:
Christian Tzolov
2024-07-27 23:42:00 +02:00
parent 0c4d6ab753
commit 1c0c77b4eb

View File

@@ -195,7 +195,6 @@ public class AnthropicChatModel extends AbstractToolCallSupport implements ChatM
.stream()
.filter(content -> content.type() != ContentBlock.Type.TOOL_USE)
.map(content -> {
new AssistantMessage(content.text(), Map.of());
return new Generation(new AssistantMessage(content.text(), Map.of()),
ChatGenerationMetadata.from(chatCompletion.stopReason(), null));
})