deleted function and changed button color

This commit is contained in:
Lucas Oliveira 2023-06-15 14:52:26 -03:00
commit 3e4bfc99b8
2 changed files with 1 additions and 12 deletions

View file

@ -136,7 +136,7 @@ export default function BuildTrigger({
>
<div className={`fixed right-4` + (isBuilt ? " bottom-20" : " bottom-4")}>
<div
className="border flex justify-center align-center py-1 px-3 w-12 h-12 rounded-full bg-gradient-to-r from-blue-700 via-blue-600 to-blue-500 dark:border-gray-600 cursor-pointer"
className="border flex justify-center align-center py-1 px-3 w-12 h-12 rounded-full bg-blue-600 dark:border-gray-600 cursor-pointer"
onClick={() => {
handleBuild(flow);
}}

View file

@ -185,17 +185,6 @@ export default function ChatModal({
}://${host}${chatEndpoint}`;
}
function getWebSocketUrl(chatId, isDevelopment = false) {
const isSecureProtocol = window.location.protocol === "https:";
const webSocketProtocol = isSecureProtocol ? "wss" : "ws";
const host = isDevelopment ? "localhost:7860" : window.location.host;
const chatEndpoint = `/api/v1/chat/${chatId}`;
return `${
isDevelopment ? "ws" : webSocketProtocol
}://${host}${chatEndpoint}`;
}
function connectWS() {
try {
const urlWs = getWebSocketUrl(