Skip to content

Commit 3e91ae0

Browse files
rohan-pandeyyrahulharpal1603
authored andcommitted
include apple_silicon in frontend HardwareInfo interface
1 parent 2019c3c commit 3e91ae0

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

frontend/src/components/OnboardingSteps/AIModelSetupStep.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,11 @@ export const AIModelSetupStep: React.FC<AIModelSetupStepProps> = ({
262262
</span>
263263
<span className="bg-muted/60 text-muted-foreground inline-flex items-center gap-1 rounded-full border px-3 py-1 text-xs font-medium">
264264
<Cpu className="h-3 w-3" />
265-
{hardwareSpecs.gpu_names?.length
266-
? hardwareSpecs.gpu_names.join(', ')
267-
: 'No dedicated GPU'}
265+
{hardwareSpecs.apple_silicon
266+
? hardwareSpecs.apple_silicon
267+
: hardwareSpecs.gpu_names?.length
268+
? hardwareSpecs.gpu_names.join(', ')
269+
: 'No dedicated GPU'}
268270
</span>
269271
</div>
270272
)}

frontend/src/types/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export interface HardwareInfo {
2424
ram_gb: number;
2525
gpu_detected: boolean;
2626
gpu_names: string[];
27+
apple_silicon: string | null;
2728
available_providers: string[];
2829
recommended_tier: ModelTier;
2930
}

0 commit comments

Comments
 (0)