Skip to content

Commit 23591ae

Browse files
committed
fix: Fixed the bug in the toString method
Signed-off-by: Sun Yuhan <[email protected]>
1 parent f6153c3 commit 23591ae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

models/spring-ai-deepseek/src/main/java/org/springframework/ai/deepseek/DeepSeekAssistantMessage.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
import org.springframework.ai.chat.messages.AssistantMessage;
2424
import org.springframework.ai.content.Media;
2525

26+
/**
27+
* @author Mark Pollack
28+
* @author Soby Chacko
29+
* @author Sun Yuhan
30+
*/
2631
public class DeepSeekAssistantMessage extends AssistantMessage {
2732

2833
private Boolean prefix;
@@ -109,7 +114,7 @@ public int hashCode() {
109114

110115
@Override
111116
public String toString() {
112-
return "AssistantMessage [messageType=" + this.messageType + ", toolCalls=" + super.getToolCalls()
117+
return "DeepSeekAssistantMessage [messageType=" + this.messageType + ", toolCalls=" + super.getToolCalls()
113118
+ ", textContent=" + this.textContent + ", reasoningContent=" + this.reasoningContent + ", prefix="
114119
+ this.prefix + ", metadata=" + this.metadata + "]";
115120
}

0 commit comments

Comments
 (0)