mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
adding sydney in progress. only uses jailbreakConvoId and parentMsgId
This commit is contained in:
parent
69b3edc52c
commit
2c1ae68dc4
11 changed files with 53 additions and 41 deletions
|
|
@ -48,9 +48,12 @@ export default function Message({
|
|||
const bgColors = {
|
||||
chatgpt: 'rgb(16, 163, 127)',
|
||||
chatgptBrowser: 'rgb(25, 207, 207)',
|
||||
bingai: ''
|
||||
bingai: '',
|
||||
sydney: 'rgb(214, 255, 255)',
|
||||
};
|
||||
|
||||
const isBing = sender === 'bingai' || sender === 'sydney';
|
||||
|
||||
let icon = `${sender}:`;
|
||||
let backgroundColor = bgColors[sender];
|
||||
|
||||
|
|
@ -59,13 +62,13 @@ export default function Message({
|
|||
'w-full border-b border-black/10 bg-gray-50 dark:border-gray-900/50 text-gray-800 dark:text-gray-100 group bg-gray-100 dark:bg-[#444654]';
|
||||
}
|
||||
|
||||
if ((notUser && backgroundColor) || sender === 'bingai') {
|
||||
if ((notUser && backgroundColor) || isBing) {
|
||||
icon = (
|
||||
<div
|
||||
style={{ backgroundColor }}
|
||||
className="relative flex h-[30px] w-[30px] items-center justify-center rounded-sm p-1 text-white"
|
||||
>
|
||||
{sender === 'bingai' ? <BingIcon /> : <GPTIcon />}
|
||||
{isBing ? <BingIcon /> : <GPTIcon />}
|
||||
{error && (
|
||||
<span className="absolute right-0 top-[20px] -mr-2 flex h-4 w-4 items-center justify-center rounded-full border border-white bg-red-500 text-[10px] text-white">
|
||||
!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue