1- import { isDyadProEnabled , type LargeLanguageModel } from "@/lib/schemas" ;
1+ import { isAliFullStackProEnabled , type LargeLanguageModel } from "@/lib/schemas" ;
22import { Button } from "@/components/ui/button" ;
33import {
44 Tooltip ,
@@ -111,14 +111,14 @@ export function ModelPicker() {
111111 ? modelsByProviders [ "auto" ] . filter ( ( model ) => {
112112 if (
113113 settings &&
114- ! isDyadProEnabled ( settings ) &&
114+ ! isAliFullStackProEnabled ( settings ) &&
115115 model . apiName === "turbo"
116116 ) {
117117 return false ;
118118 }
119119 if (
120120 settings &&
121- isDyadProEnabled ( settings ) &&
121+ isAliFullStackProEnabled ( settings ) &&
122122 model . apiName === "free"
123123 ) {
124124 return false ;
@@ -138,7 +138,7 @@ export function ModelPicker() {
138138 }
139139 const selectedModel = settings ?. selectedModel ;
140140 const isSmartAutoEnabled =
141- settings . enableProSmartFilesContextMode && isDyadProEnabled ( settings ) ;
141+ settings . enableProSmartFilesContextMode && isAliFullStackProEnabled ( settings ) ;
142142 const modelDisplayName = getModelDisplayName ( ) ;
143143 // Split providers into primary and secondary groups (excluding auto)
144144 const providerEntries =
@@ -152,7 +152,7 @@ export function ModelPicker() {
152152 const provider = providers ?. find ( ( p ) => p . id === providerId ) ;
153153 return ! ( provider && provider . secondary ) ;
154154 } ) ;
155- if ( settings && isDyadProEnabled ( settings ) ) {
155+ if ( settings && isAliFullStackProEnabled ( settings ) ) {
156156 primaryProviders . unshift ( [ "auto" , TURBO_MODELS ] ) ;
157157 }
158158 const secondaryProviders = providerEntries . filter ( ( [ providerId , models ] ) => {
@@ -277,7 +277,7 @@ export function ModelPicker() {
277277 // we will use the paid models (in Dyad Pro backend) which
278278 // don't have the free limitations.
279279 if (
280- isDyadProEnabled ( settings ) &&
280+ isAliFullStackProEnabled ( settings ) &&
281281 model . apiName . endsWith ( ":free" )
282282 ) {
283283 return false ;
@@ -297,7 +297,7 @@ export function ModelPicker() {
297297 < span > { providerDisplayName } </ span >
298298 { provider ?. type === "cloud" &&
299299 ! provider ?. secondary &&
300- isDyadProEnabled ( settings ) && (
300+ isAliFullStackProEnabled ( settings ) && (
301301 < span className = "text-[10px] bg-gradient-to-r from-indigo-600 via-indigo-500 to-indigo-600 bg-[length:200%_100%] animate-[shimmer_5s_ease-in-out_infinite] text-white px-1.5 py-0.5 rounded-full font-medium" >
302302 Pro
303303 </ span >
0 commit comments