mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 11:56:25 +02:00
feat(llm-config): replace useGlobalLLMConfigs with globalLLMConfigsAtom in onboard page
This commit is contained in:
parent
80d6696310
commit
c91c83d40d
1 changed files with 3 additions and 3 deletions
|
|
@ -12,10 +12,10 @@ import { OnboardHeader } from "@/components/onboard/onboard-header";
|
||||||
import { OnboardLLMSetup } from "@/components/onboard/onboard-llm-setup";
|
import { OnboardLLMSetup } from "@/components/onboard/onboard-llm-setup";
|
||||||
import { OnboardLoading } from "@/components/onboard/onboard-loading";
|
import { OnboardLoading } from "@/components/onboard/onboard-loading";
|
||||||
import { OnboardStats } from "@/components/onboard/onboard-stats";
|
import { OnboardStats } from "@/components/onboard/onboard-stats";
|
||||||
import { useGlobalLLMConfigs, useLLMPreferences } from "@/hooks/use-llm-configs";
|
import { useLLMPreferences } from "@/hooks/use-llm-configs";
|
||||||
import { getBearerToken, redirectToLogin } from "@/lib/auth-utils";
|
import { getBearerToken, redirectToLogin } from "@/lib/auth-utils";
|
||||||
import { useAtomValue } from "jotai";
|
import { useAtomValue } from "jotai";
|
||||||
import { llmConfigsAtom } from "@/atoms/llm-config/llm-config-query.atoms";
|
import { llmConfigsAtom, globalLLMConfigsAtom } from "@/atoms/llm-config/llm-config-query.atoms";
|
||||||
|
|
||||||
const OnboardPage = () => {
|
const OnboardPage = () => {
|
||||||
const t = useTranslations("onboard");
|
const t = useTranslations("onboard");
|
||||||
|
|
@ -24,7 +24,7 @@ const OnboardPage = () => {
|
||||||
const searchSpaceId = Number(params.search_space_id);
|
const searchSpaceId = Number(params.search_space_id);
|
||||||
|
|
||||||
const { data: llmConfigs = [], isFetching: configsLoading, refetch: refreshConfigs } = useAtomValue(llmConfigsAtom);
|
const { data: llmConfigs = [], isFetching: configsLoading, refetch: refreshConfigs } = useAtomValue(llmConfigsAtom);
|
||||||
const { globalConfigs, loading: globalConfigsLoading } = useGlobalLLMConfigs();
|
const { data: globalConfigs = [], isFetching: globalConfigsLoading } = useAtomValue(globalLLMConfigsAtom);
|
||||||
const {
|
const {
|
||||||
preferences,
|
preferences,
|
||||||
loading: preferencesLoading,
|
loading: preferencesLoading,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue