mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
change semantics
Update README deployment steps and add deploy:secrets script to package.json update local inference script and README update lockfile reconfigure package scripts for development update test execution pass server tests Update README with revised Bun commands and workspace details remove pnpm package manager designator create bun server
This commit is contained in:

committed by
Geoff Seemueller

parent
1055cda2f1
commit
497eb22ad8
26
packages/client/src/pages/index/+Page.tsx
Normal file
26
packages/client/src/pages/index/+Page.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
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() {
|
||||
useEffect(() => {
|
||||
try {
|
||||
let model = localStorage.getItem("recentModel");
|
||||
|
||||
if (getModelFamily(model as string)) {
|
||||
clientChatStore.setModel(model as string);
|
||||
}
|
||||
} catch (_) {
|
||||
console.log("using default model");
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Stack direction="column" height="100%" width="100%" spacing={0}>
|
||||
<Chat height="100%" width="100%" />
|
||||
</Stack>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user