-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning message near chat window about model hallucinations (#2794)
Referencing issue #2756
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Flex } from "@chakra-ui/react"; | ||
import { Fragment } from "react"; | ||
import { TeamMember } from "src/components/TeamMember"; | ||
|
||
import data from "../../data/warning.json"; | ||
|
||
const warn = ["warning"] as const; | ||
|
||
const rootProps = { | ||
bg: "transparent", | ||
borderRadius: 0, | ||
}; | ||
|
||
export const ChatWarning = () => { | ||
return ( | ||
<Flex direction="column" justifyContent="center" borderTopWidth="1px" p="2"> | ||
{warn.map((id) => ( | ||
<Fragment key={id}> | ||
<TeamMember {...data.panels[id]} rootProps={rootProps}></TeamMember> | ||
</Fragment> | ||
))} | ||
<Flex justifyContent="center" pb="2" fontSize="sm" color="gray.500"> | ||
Usage Warning | ||
</Flex> | ||
</Flex> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"panels": { | ||
"warning": { | ||
"name": "Hallucinations", | ||
"title": "This Assistant is a demonstration version that does not have internet access. It may generate incorrect or misleading information. It is not suitable for important use cases or for giving advice.", | ||
"url": "https://en.wikipedia.org/wiki/Hallucination_(artificial_intelligence)", | ||
"imageURL": "https://assets.stickpng.com/images/5a81af7d9123fa7bcc9b0793.png" | ||
} | ||
}, | ||
"groups": [ | ||
{ | ||
"name": "Usage notes", | ||
"members": ["warning"] | ||
} | ||
] | ||
} |