Centralize use of useUserConfig and use that to retrieve default model and chat model options

This commit is contained in:
sabaimran
2025-01-20 10:59:02 -08:00
parent a3fcd6f06e
commit d681a2080a
5 changed files with 27 additions and 22 deletions

View File

@@ -171,7 +171,7 @@ export default function Agents() {
error: authenticationError,
isLoading: authenticationLoading,
} = useAuthenticatedData();
const { userConfig } = useUserConfig(true);
const { data: userConfig } = useUserConfig(true);
const [showLoginPrompt, setShowLoginPrompt] = useState(false);
const isMobileWidth = useIsMobileWidth();