Skip to content

Commit 8aab4cb

Browse files
committed
do not add a spearate code entry in the chat window
1 parent 54ed1d9 commit 8aab4cb

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

frontend/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ function App() {
126126
const data = await response.json();
127127
const code = data.code;
128128

129-
addMessage({ text: code, type: "code", role: "system" });
130129
addMessage({ text: data.text, type: "message", role: "system" });
131130

132131
if (response.status != 200) {

frontend/src/components/Chat.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ function Message(props: {
3030
</div>
3131
</div>
3232
<div className="message-body">
33-
{props.type == "code" && (
34-
<div>
35-
I generated the following code:
36-
<SyntaxHighlighter wrapLongLines={true} language="python">
37-
{text}
38-
</SyntaxHighlighter>
39-
</div>
40-
)}
41-
4233
{props.type == "message" &&
4334
(props.showLoader ? (
4435
<div>

0 commit comments

Comments
 (0)