diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-12-03 14:29:52 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-12-03 14:29:52 -0500 |
| commit | 4aaa485410e81a10708f33743ef721c5e050c6e3 (patch) | |
| tree | a39762feaaadcda366a91f12968824c6bd4560ef /lume/src/_components | |
| parent | c84f87eeef75e93423258035517a5c39a3102333 (diff) | |
| download | xesite-4aaa485410e81a10708f33743ef721c5e050c6e3.tar.xz xesite-4aaa485410e81a10708f33743ef721c5e050c6e3.zip | |
_components/XeblogConv: add more explicit way to classify Mimi's text as AI generated
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lume/src/_components')
| -rw-r--r-- | lume/src/_components/XeblogConv.tsx | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/lume/src/_components/XeblogConv.tsx b/lume/src/_components/XeblogConv.tsx index 95f26fc..45443d7 100644 --- a/lume/src/_components/XeblogConv.tsx +++ b/lume/src/_components/XeblogConv.tsx @@ -3,9 +3,16 @@ export interface XeblogConvProps { mood: string; children: HTMLElement[]; standalone?: boolean; + aiModel?: string; } -const ConvSnippet = ({ name, mood, children, standalone }: XeblogConvProps) => { +const ConvSnippet = ({ + name, + mood, + children, + standalone, + aiModel, +}: XeblogConvProps) => { const nameLower = name.toLowerCase(); name = name.replace(" ", "_"); const size = standalone ? 128 : 64; @@ -14,12 +21,12 @@ const ConvSnippet = ({ name, mood, children, standalone }: XeblogConvProps) => { <> <div className="my-4 flex space-x-4 rounded-md border border-solid border-fg-4 bg-bg-2 p-3 dark:border-fgDark-4 dark:bg-bgDark-2 max-w-full min-h-fit"> <div className="flex max-h-16 shrink-0 items-center justify-center self-center"> - <img - style="max-height:6rem" - alt={`${name} is ${mood}`} - loading="lazy" - src={`https://cdn.xeiaso.net/sticker/${nameLower}/${mood}/${size}`} - /> + <img + style="max-height:6rem" + alt={`${name} is ${mood}`} + loading="lazy" + src={`https://cdn.xeiaso.net/sticker/${nameLower}/${mood}/${size}`} + /> </div> <div className="convsnippet min-w-0 self-center"> {"<"} @@ -27,6 +34,12 @@ const ConvSnippet = ({ name, mood, children, standalone }: XeblogConvProps) => { <b>{name}</b> </a> {">"} {children} + {aiModel && ( + <> + <br /> + <small>Content generated by AI using the model {aiModel}.</small> + </> + )} </div> </div> </> |
