diff --git a/public/img/logos/experimental.svg b/public/img/logos/experimental.svg
deleted file mode 100644
index c72356f6..00000000
--- a/public/img/logos/experimental.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
\ No newline at end of file
diff --git a/public/img/logos/zeta-ai.svg b/public/img/logos/zeta-ai.svg
deleted file mode 100644
index f8858093..00000000
--- a/public/img/logos/zeta-ai.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
\ No newline at end of file
diff --git a/src/components/Cmdk/components/Cmdk.tsx b/src/components/Cmdk/components/Cmdk.tsx
index 8897372d..f8bd3cd7 100644
--- a/src/components/Cmdk/components/Cmdk.tsx
+++ b/src/components/Cmdk/components/Cmdk.tsx
@@ -14,6 +14,7 @@ import { IconClaim, IconCode, IconServer } from "~/components/shared";
import { ArrowIcon } from "./ArrowIcon";
import { CmdkBreadcrumb } from "./CmdkBreadcrumb";
import { CmdkChat } from "./CmdkChat";
+import { ExperimentalIcon } from "./ExperimentalIcon";
import { FeedbackIcon } from "./FeedbackIcon";
import { ZetaAiIcon } from "./ZetaAiIcon";
@@ -177,20 +178,6 @@ export const Cmdk: React.FC = ({ isOpen, setIsCmdkOpen }) => {
});
}, []);
- const onKeyDown = React.useCallback(
- (e: KeyboardEvent) => {
- if (isHome || inputValue.length) {
- return;
- }
-
- if (e.key === "Backspace") {
- e.preventDefault();
- popPage();
- }
- },
- [inputValue.length, isHome, popPage]
- );
-
const commandListMaxHeight = activePage === "chat" ? "min(600px, 50vh)" : "auto";
return (
@@ -248,7 +235,7 @@ export const Cmdk: React.FC = ({ isOpen, setIsCmdkOpen }) => {
-
+
Experimental
diff --git a/src/components/Cmdk/components/CmdkChat.tsx b/src/components/Cmdk/components/CmdkChat.tsx
index 0de9b166..82704230 100644
--- a/src/components/Cmdk/components/CmdkChat.tsx
+++ b/src/components/Cmdk/components/CmdkChat.tsx
@@ -25,7 +25,13 @@ const AssistantMessage: React.FC<{ children: React.ReactNode; className?: string
export const CmdkChat: React.FC = ({ initialValue, setCmdkInputValue }) => {
const inputRef = useRef(null);
- const { messages, append, handleSubmit, input, handleInputChange, error, isLoading, setInput } = useChat();
+ const basePath =
+ process.env.NEXT_PUBLIC_BASE_PATH && typeof window !== "undefined"
+ ? `https://${window.location.host}/${process.env.NEXT_PUBLIC_BASE_PATH}`
+ : "";
+ const { messages, append, handleSubmit, input, handleInputChange, error, isLoading, setInput } = useChat({
+ api: `${basePath}/api/chat`,
+ });
const isLoadingAssistantMessage = isLoading;
diff --git a/src/components/Cmdk/components/ExperimentalIcon.tsx b/src/components/Cmdk/components/ExperimentalIcon.tsx
new file mode 100644
index 00000000..7379ce0d
--- /dev/null
+++ b/src/components/Cmdk/components/ExperimentalIcon.tsx
@@ -0,0 +1,25 @@
+import React from "react";
+
+export const ExperimentalIcon: React.FC = ({ className }) => {
+ return (
+
+ );
+};
+
+interface ExperimentalIconProps {
+ className: string;
+}