chore: update model download recommendation

This commit is contained in:
haritabh-z01 2025-12-04 00:23:22 +05:30
parent d408ef10f0
commit c7dfd4725d
4 changed files with 109 additions and 4 deletions

View file

@ -65,6 +65,21 @@ export const onboardingRouter = createRouter({
},
),
/**
* Get recommended local model ID based on hardware
*/
getRecommendedLocalModel: procedure.query(({ ctx }): string => {
const { serviceManager } = ctx;
if (!serviceManager) {
return "whisper-base";
}
const onboardingService = serviceManager.getOnboardingService();
if (!onboardingService) {
return "whisper-base";
}
return onboardingService.getRecommendedLocalModelId();
}),
/**
* Check if onboarding is needed
*/