feat: session-level model config

This commit is contained in:
Yidadaa
2023-04-22 01:13:23 +08:00
parent d6844a54e8
commit ac8f484622
8 changed files with 187 additions and 167 deletions

View File

@@ -2,7 +2,7 @@
require("../polyfill");
import { useState, useEffect, StyleHTMLAttributes } from "react";
import { useState, useEffect } from "react";
import styles from "./home.module.scss";
@@ -10,7 +10,6 @@ import BotIcon from "../icons/bot.svg";
import LoadingIcon from "../icons/three-dots.svg";
import { getCSSVar, useMobileScreen } from "../utils";
import { Chat } from "./chat";
import dynamic from "next/dynamic";
import { Path } from "../constant";
@@ -38,6 +37,10 @@ const Settings = dynamic(async () => (await import("./settings")).Settings, {
loading: () => <Loading noLogo />,
});
const Chat = dynamic(async () => (await import("./chat")).Chat, {
loading: () => <Loading noLogo />,
});
export function useSwitchTheme() {
const config = useAppConfig();