diff --git a/frontend/src/components/WorkspaceChat/index.jsx b/frontend/src/components/WorkspaceChat/index.jsx
index de8b3d2c..739d1b89 100644
--- a/frontend/src/components/WorkspaceChat/index.jsx
+++ b/frontend/src/components/WorkspaceChat/index.jsx
@@ -35,7 +35,10 @@ export default function WorkspaceChat({ loading, workspace }) {
);
console.log("meta Response Settings:", metaResponseSettings);
- if (Object.values(metaResponseSettings).some((settings) => settings.isEnabled)
+ if (
+ Object.values(metaResponseSettings).some(
+ (settings) => settings.isEnabled
+ )
) {
chatHistory = chatHistory.map((message) => {
if (message.role === "assistant") {
diff --git a/frontend/src/pages/WorkspaceSettings/MetaResponse/index.jsx b/frontend/src/pages/WorkspaceSettings/MetaResponse/index.jsx
index f928aa0c..599f8688 100644
--- a/frontend/src/pages/WorkspaceSettings/MetaResponse/index.jsx
+++ b/frontend/src/pages/WorkspaceSettings/MetaResponse/index.jsx
@@ -1,9 +1,10 @@
import MetaResponse from "@/models/metaResponse";
import showToast from "@/utils/toast";
-import { ChatText, Heart, UserCircle } from "@phosphor-icons/react";
+import { ChatText, Cube, Heart, UserCircle } from "@phosphor-icons/react";
import { useEffect, useState } from "react";
import EnableFeatures from "./EnableFeatures";
import FeatureSettings from "./FeatureSettings";
+import TitleBlock from "@/components/Generic/Blocks/TitleBlock";
export default function MetaResponseSettings({ workspace }) {
const [settings, setSettings] = useState({});
@@ -70,47 +71,57 @@ export default function MetaResponseSettings({ workspace }) {
// };
return (
-
- {Object.keys(settings).map((feature) => {
- const featureSettings = settings[feature];
- const IconComponent = mapIcons[feature];
- // const FeatureComponent = mapFeatures[feature];
- return (
-
-
- workspace.metaResponse &&
- handleToggleEnableFeatures(feature, enabled)
- }
- disabled={!workspace.metaResponse}
- Icon={IconComponent}
- content={
- featureSettings.isEnabled && (
-
- handleUpdateFeatureSettings(
- feature,
- updatedFeatureSettings
- )
- }
- />
- )
- }
- bg={featureSettings.isEnabled}
- />
-
- );
- })}
+
+
+
+
+
+ {Object.keys(settings).map((feature) => {
+ const featureSettings = settings[feature];
+ const IconComponent = mapIcons[feature];
+ // const FeatureComponent = mapFeatures[feature];
+ return (
+
+
+ workspace.metaResponse &&
+ handleToggleEnableFeatures(feature, enabled)
+ }
+ disabled={!workspace.metaResponse}
+ Icon={IconComponent}
+ content={
+ featureSettings.isEnabled && (
+
+ handleUpdateFeatureSettings(
+ feature,
+ updatedFeatureSettings
+ )
+ }
+ />
+ )
+ }
+ bg={featureSettings.isEnabled}
+ />
+
+ );
+ })}
+
);
}