mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
cleanup
This commit is contained in:
parent
3e8cdabd73
commit
be381c833e
4 changed files with 6 additions and 13 deletions
|
|
@ -60,10 +60,8 @@ export function DashboardClientLayout({
|
|||
}
|
||||
}, [activeChatId, isChatPannelOpen]);
|
||||
|
||||
// Replace useLLMPreferences with jotai atom
|
||||
const { data: preferences = {}, isFetching: loading, error } = useAtomValue(llmPreferencesAtom);
|
||||
|
||||
// Create isOnboardingComplete function for backward compatibility
|
||||
const isOnboardingComplete = useCallback(() => {
|
||||
return !!(
|
||||
preferences.long_context_llm_id &&
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ const OnboardPage = () => {
|
|||
strategic_llm_id: defaultConfigId,
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
await updatePreferences({
|
||||
search_space_id: searchSpaceId,
|
||||
data: newPreferences
|
||||
|
|
@ -131,9 +131,6 @@ const OnboardPage = () => {
|
|||
toast.success("AI models configured automatically!", {
|
||||
description: "You can customize these in advanced settings.",
|
||||
});
|
||||
} catch (updateError) {
|
||||
console.error("Failed to update preferences:", updateError);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Auto-configuration failed:", error);
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue