diff --git a/client/src/components/Nav/SettingsTabs/Beta/Beta.tsx b/client/src/components/Nav/SettingsTabs/Beta/Beta.tsx
index 7faa55d4d1..9392520d8c 100644
--- a/client/src/components/Nav/SettingsTabs/Beta/Beta.tsx
+++ b/client/src/components/Nav/SettingsTabs/Beta/Beta.tsx
@@ -1,6 +1,7 @@
import { memo } from 'react';
import * as Tabs from '@radix-ui/react-tabs';
import { SettingsTabValues } from 'librechat-data-provider';
+import CodeArtifacts from './CodeArtifacts';
import LaTeXParsing from './LaTeXParsing';
import ModularChat from './ModularChat';
@@ -18,6 +19,9 @@ function Beta() {
+
+
+
);
diff --git a/client/src/components/Nav/SettingsTabs/Beta/CodeArtifacts.tsx b/client/src/components/Nav/SettingsTabs/Beta/CodeArtifacts.tsx
new file mode 100644
index 0000000000..93938763c6
--- /dev/null
+++ b/client/src/components/Nav/SettingsTabs/Beta/CodeArtifacts.tsx
@@ -0,0 +1,37 @@
+import { useRecoilState } from 'recoil';
+import HoverCardSettings from '../HoverCardSettings';
+import { Switch } from '~/components/ui';
+import { useLocalize } from '~/hooks';
+import store from '~/store';
+
+export default function CodeArtifactsSwitch({
+ onCheckedChange,
+}: {
+ onCheckedChange?: (value: boolean) => void;
+}) {
+ const [codeArtifacts, setCodeArtifacts] = useRecoilState(store.codeArtifacts);
+ const localize = useLocalize();
+
+ const handleCheckedChange = (value: boolean) => {
+ setCodeArtifacts(value);
+ if (onCheckedChange) {
+ onCheckedChange(value);
+ }
+ };
+
+ return (
+
+
+
{localize('com_nav_code_artifacts')}
+
+
+
+
+ );
+}
diff --git a/client/src/store/settings.ts b/client/src/store/settings.ts
index 01d62c4ba9..4a8234e72a 100644
--- a/client/src/store/settings.ts
+++ b/client/src/store/settings.ts
@@ -37,6 +37,7 @@ const localStorageAtoms = {
// Beta features settings
modularChat: atomWithLocalStorage('modularChat', true),
LaTeXParsing: atomWithLocalStorage('LaTeXParsing', true),
+ codeArtifacts: atomWithLocalStorage('codeArtifacts', false),
// Commands settings
atCommand: atomWithLocalStorage('atCommand', true),