feat: add chat history and session

This commit is contained in:
2024-10-01 00:46:26 +08:00
parent 441b94a061
commit 7d4e6bd299
25 changed files with 1133 additions and 221 deletions

View File

@@ -2,7 +2,7 @@ import { Query, QueryClient } from '@kevisual/query';
import { QueryWs } from '@kevisual/query/ws';
import { modal } from './redirect-to-login';
import { create } from 'zustand';
export const query = new Query();
export const query = new QueryClient();
query.beforeRequest = async (config) => {
if (config.headers) {
const token = localStorage.getItem('token');