Skip to content

Commit 5480585

Browse files
removed console
1 parent 28762be commit 5480585

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/App/src/components/Chat/Chat.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -561,22 +561,18 @@ const Chat: React.FC<ChatProps> = ({
561561
const splitRunningText = runningText.split("}{");
562562
let parsedChartResponse: any = {};
563563
parsedChartResponse= JSON.parse("{" + splitRunningText[splitRunningText.length - 1]);
564-
// console.log("parsedChartResponse", parsedChartResponse);
565564
let chartResponse : any = {};
566565
try {
567566
chartResponse = JSON.parse(parsedChartResponse?.choices[0]?.messages[0]?.content)
568567
} catch (e) {
569568
chartResponse = parsedChartResponse?.choices[0]?.messages[0]?.content;
570569
}
571570

572-
573-
// console.log("chartResponse", chartResponse);
574571
if (typeof chartResponse === 'object' && chartResponse?.answer) {
575572
chartResponse = chartResponse.answer;
576573
}
577-
// console.log("chartResponse", chartResponse);
574+
578575
if (
579-
// "object" in parsedChartResponse &&
580576
chartResponse?.type &&
581577
chartResponse?.data
582578
) {
@@ -623,7 +619,6 @@ const Chat: React.FC<ChatProps> = ({
623619
parsedChartResponse?.error ||
624620
parsedChartResponse?.choices[0]?.messages[0]?.content
625621
) {
626-
console.log("parsedChartRespons 615::", parsedChartResponse);
627622
const errorMsg =
628623
parsedChartResponse?.error ||
629624
parsedChartResponse?.choices[0]?.messages[0]?.content

0 commit comments

Comments
 (0)