hotpatch(cloud): add llm load balancing

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-01-29 15:28:31 -08:00
parent 5d5f9d3bfb
commit 6fb656fd8f
21 changed files with 1324 additions and 103 deletions

View file

@ -46,7 +46,13 @@ export function DashboardClientLayout({
const { mutateAsync: updatePreferences } = useAtomValue(updateLLMPreferencesMutationAtom);
const isOnboardingComplete = useCallback(() => {
return !!(preferences.agent_llm_id && preferences.document_summary_llm_id);
// Check that both LLM IDs are set (including 0 for Auto mode)
return (
preferences.agent_llm_id !== null &&
preferences.agent_llm_id !== undefined &&
preferences.document_summary_llm_id !== null &&
preferences.document_summary_llm_id !== undefined
);
}, [preferences]);
const { data: access = null, isLoading: accessLoading } = useAtomValue(myAccessAtom);