chore: update model download recommendation
This commit is contained in:
parent
d408ef10f0
commit
c7dfd4725d
4 changed files with 109 additions and 4 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue