mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-20 01:02:02 +00:00
fix: chat response rendering
This commit is contained in:
parent
c31497ae2c
commit
9e056ef6ce
1 changed files with 1 additions and 4 deletions
|
|
@ -47,6 +47,7 @@ import javax.swing.Icon;
|
|||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextPane;
|
||||
import javax.swing.SwingConstants;
|
||||
import javax.swing.SwingUtilities;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class ChatMessageResponseBody extends JPanel {
|
||||
|
|
@ -113,10 +114,6 @@ public class ChatMessageResponseBody extends JPanel {
|
|||
}
|
||||
|
||||
public ChatMessageResponseBody withResponse(String response) {
|
||||
if (!responseReceived) {
|
||||
removeAll();
|
||||
}
|
||||
|
||||
for (var message : MarkdownUtil.splitCodeBlocks(response)) {
|
||||
processResponse(message, message.startsWith("```"), false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue