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 { useMemo } from "react";
|
||||||
import { useAccessStore, useAppConfig } from "../store";
|
import { useAccessStore, useAppConfig } from "../store";
|
||||||
import { collectModels, collectModelsWithDefaultModel } from "./model";
|
import { collectModels, collectModelsWithDefaultModel } from "./model";
|
||||||
|
import { useSession } from "next-auth/react";
|
||||||
|
|
||||||
export function useAllModels() {
|
export function useAllModels() {
|
||||||
const accessStore = useAccessStore();
|
const accessStore = useAccessStore();
|
||||||
const configStore = useAppConfig();
|
const configStore = useAppConfig();
|
||||||
|
const { data: session, status } = useSession();
|
||||||
|
console.log("-sssssssssss", session, status);
|
||||||
const models = useMemo(() => {
|
const models = useMemo(() => {
|
||||||
return collectModelsWithDefaultModel(
|
return collectModelsWithDefaultModel(
|
||||||
configStore.models,
|
configStore.models,
|
||||||
|
Loading…
Reference in New Issue
Block a user