Skip to content

Commit

Permalink
ui: system message from chat content shouldn't be displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Mar 18, 2024
1 parent 1571275 commit b72f1c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ChatContent/ChatContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Flex, Text } from "@radix-ui/themes";
import styles from "./ChatContent.module.css";
import { ContextFiles } from "./ContextFiles";
import { AssistantInput } from "./AssistantInput";
import { SystemInput } from "./SystemInput";
// import { SystemInput } from "./SystemInput";

const PlaceHolderText: React.FC = () => (
<Text>Welcome to Refact chat! How can I assist you today?</Text>
Expand Down Expand Up @@ -78,7 +78,8 @@ export const ChatContent = React.forwardRef<HTMLDivElement, ChatContentProps>(
);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
} else if (role === "system") {
return <SystemInput key={index}>{text}</SystemInput>;
return null;
// return <SystemInput key={index}>{text}</SystemInput>;
} else {
return <Markdown key={index}>{text}</Markdown>;
}
Expand Down

0 comments on commit b72f1c0

Please sign in to comment.