Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM runs in the web #17

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chatgse/app/components/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function AuthPage() {

const goHome = () => navigate(Path.Home);
const goChat = () => navigate(Path.Chat);
const goWebllm = () => navigate(Path.Webllm);
const resetAccessCode = () => {
accessStore.update((access) => {
access.openaiApiKey = "";
Expand Down
5 changes: 5 additions & 0 deletions chatgse/app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const MaskPage = dynamic(async () => (await import("./mask")).MaskPage, {
loading: () => <Loading noLogo />,
});

const Webllm = dynamic(async () => (await import("./webllm")).Webllm, {
loading: () => <Loading noLogo />,
});

export function useSwitchTheme() {
const config = useAppConfig();

Expand Down Expand Up @@ -164,6 +168,7 @@ function Screen() {
<Route path={Path.Masks} element={<MaskPage />} />
<Route path={Path.Chat} element={<Chat />} />
<Route path={Path.Settings} element={<Settings />} />
<Route path={Path.Webllm} element={<Webllm />} />
</Routes>
</div>
</>
Expand Down
Loading