mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Filter out non-text models in OnboardingModal
This commit is contained in:
1 file changed
+5
-1
@@ -66,8 +66,12 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps)
|
||||
);
|
||||
|
||||
// Filter models to only show selected provider models
|
||||
// Also filter to only show text models (modalities absent or includes "text")
|
||||
const providerModels = selectedProvider
|
||||
? models.filter(model => model.provider === selectedProvider.id)
|
||||
? models.filter(model =>
|
||||
model.provider === selectedProvider.id &&
|
||||
(!model.modalities || model.modalities.includes('text'))
|
||||
)
|
||||
: [];
|
||||
|
||||
// Filter models by search query
|
||||
|
||||
Reference in new issue
Block a user