mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
**Refactor imports and improve type annotations**
- Adjusted import statements across the codebase to align with consistent use of `type`. - Unified usage of `EventSource` initialization. - Introduced `RootDeps` type for shared dependencies. - Commented out unused VitePWA configuration. - Updated proxy target URLs in Vite configuration.
This commit is contained in:
@@ -8,11 +8,9 @@ import { getModelFamily } from "../../components/chat/lib/SupportedModels";
|
||||
export default function IndexPage() {
|
||||
useEffect(() => {
|
||||
try {
|
||||
let model = localStorage.getItem("recentModel");
|
||||
const model = localStorage.getItem("recentModel");
|
||||
|
||||
if (getModelFamily(model as string)) {
|
||||
clientChatStore.setModel(model as string);
|
||||
}
|
||||
clientChatStore.setModel(model as string);
|
||||
} catch (_) {
|
||||
console.log("using default model");
|
||||
}
|
||||
|
Reference in New Issue
Block a user