File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ function App() {
126
126
const data = await response . json ( ) ;
127
127
const code = data . code ;
128
128
129
- addMessage ( { text : code , type : "code" , role : "system" } ) ;
130
129
addMessage ( { text : data . text , type : "message" , role : "system" } ) ;
131
130
132
131
if ( response . status != 200 ) {
Original file line number Diff line number Diff line change @@ -30,15 +30,6 @@ function Message(props: {
30
30
</ div >
31
31
</ div >
32
32
< 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
-
42
33
{ props . type == "message" &&
43
34
( props . showLoader ? (
44
35
< div >
You can’t perform that action at this time.
0 commit comments