feat: add anthropic models

This commit is contained in:
Shivam Mishra
2025-12-23 14:24:04 +05:30
parent 8f1f9cb426
commit c711ffb85a
5 changed files with 65 additions and 8 deletions
@@ -16,7 +16,16 @@ const getters = {
getUIFlags: $state => $state.uiFlags,
getModelsForFeature: $state => featureKey => {
const feature = $state.features[featureKey];
return feature?.models || [];
const models = feature?.models || [];
return [...models].sort((a, b) => {
// Move coming_soon items to the end
if (a.coming_soon && !b.coming_soon) return 1;
if (!a.coming_soon && b.coming_soon) return -1;
// Sort by credit_multiplier (highest first)
return (b.credit_multiplier || 0) - (a.credit_multiplier || 0);
});
},
getDefaultModelForFeature: $state => featureKey => {
const feature = $state.features[featureKey];