mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 16:16:39 +08:00
test
This commit is contained in:
parent
6181f3ead2
commit
7603b21cbc
@ -1,10 +1,13 @@
|
||||
import { useMemo } from "react";
|
||||
import { useAccessStore, useAppConfig } from "../store";
|
||||
import { collectModels, collectModelsWithDefaultModel } from "./model";
|
||||
import { useSession } from "next-auth/react";
|
||||
|
||||
export function useAllModels() {
|
||||
const accessStore = useAccessStore();
|
||||
const configStore = useAppConfig();
|
||||
const { data: session, status } = useSession();
|
||||
console.log("-sssssssssss", session, status);
|
||||
const models = useMemo(() => {
|
||||
return collectModelsWithDefaultModel(
|
||||
configStore.models,
|
||||
|
Loading…
Reference in New Issue
Block a user