Remove MDXEditor theme styles and unused attachments parameter

Eliminated the MDXEditor styles from the base theme as they are not in use. Also removed the unused "attachments" parameter from the xai model configuration for cleaner and more maintainable code.
This commit is contained in:
geoffsee
2025-05-27 14:16:43 -04:00
committed by Geoff Seemueller
parent 47272ba350
commit d90ab65b04
2 changed files with 0 additions and 62 deletions

View File

@@ -109,67 +109,6 @@ const components = {
}, },
}, },
}, },
MDXEditor: {
baseStyle: (props) => ({
border: "1px solid",
borderColor: "text.primary",
borderRadius: "lg",
height: "sm",
bg: "background.primary",
color: "text.primary",
boxShadow: "md",
// p: 4,
".mdxeditor-toolbar": {
border: "1px solid",
borderColor: "text.primary",
borderRadius: "xl",
bg: "background.primary",
m: 2,
p: 2,
// mb: 3,
// p: 3,
"& button": {
border: "none",
borderRadius: "md",
cursor: "pointer",
px: 3,
py: 1,
mr: 2,
transition: "all 0.3s ease",
_hover: {
bg: "text.secondary",
},
_active: {
bg: "background.primary",
color: "text.primary",
},
'&[data-state="on"]': {
bg: "transparent",
fill: "text.primary",
stroke: "text.primary",
boxShadow: "0 0 0 2px var(--text-primary)",
transform: "translateY(-1px)",
transition: "all 0.2s ease",
// border: '2px solid transparent', // No border needed for SVG
},
'&[data-state="off"]': {
bg: "transparent",
fill: "text.secondary",
stroke: "text.secondary",
opacity: 0.8,
transition: "all 0.2s ease",
},
},
},
"[aria-label='editable markdown']": {
color: "text.primary",
},
}),
},
CodeBlocks: { CodeBlocks: {
baseStyle: (props) => ({ baseStyle: (props) => ({
bg: "background.primary", bg: "background.primary",

View File

@@ -20,7 +20,6 @@ export class XaiChatSdk {
systemPrompt, systemPrompt,
maxTokens, maxTokens,
messages, messages,
attachments,
env, env,
model, model,
preprocessedContext, preprocessedContext,