fixes model initialization for mlx

This commit is contained in:
geoffsee
2025-06-18 13:30:38 -04:00
parent 38b364caeb
commit f1d7f52dbd
12 changed files with 127 additions and 81 deletions

View File

@@ -2,7 +2,6 @@ import React, { useEffect } from "react";
import { Stack } from "@chakra-ui/react";
import Chat from "../../components/chat/Chat";
import clientChatStore from "../../stores/ClientChatStore";
import { getModelFamily } from "../../components/chat/lib/SupportedModels";
// renders "/"
export default function IndexPage() {

View File

@@ -23,7 +23,7 @@ export const UserOptionsStoreModel = types
.split(";")
.find((row) => row.startsWith("user_preferences"));
console.log(document.cookie.split(";"));
// console.log(document.cookie.split(";"));
const newUserOptions = JSON.stringify({
theme: self.theme,
@@ -46,7 +46,7 @@ export const UserOptionsStoreModel = types
.find((row) => row.startsWith("user_preferences"));
if (!userPreferencesCoookie) {
console.log("No user preferences cookie found, creating one");
// console.log("No user preferences cookie found, creating one");
self.storeUserOptions();
}
@@ -60,20 +60,20 @@ export const UserOptionsStoreModel = types
window.addEventListener("scroll", () => {
if (ClientChatStore.isLoading && self.followModeEnabled) {
console.log("scrolling");
// console.log("scrolling");
self.setFollowModeEnabled(false);
}
});
window.addEventListener("wheel", () => {
if (ClientChatStore.isLoading && self.followModeEnabled) {
console.log("wheel");
// console.log("wheel");
self.setFollowModeEnabled(false);
}
});
window.addEventListener("touchmove", () => {
console.log("touchmove");
// console.log("touchmove");
if (ClientChatStore.isLoading && self.followModeEnabled) {
self.setFollowModeEnabled(false);
}