55 isLocalModelsEnabled ,
66 LOCAL_PROVIDERS ,
77 providersStore ,
8- useLatestBranch ,
8+ latestBranch ,
99} from '~/lib/stores/settings' ;
1010import { useCallback , useEffect , useState } from 'react' ;
1111import Cookies from 'js-cookie' ;
@@ -22,7 +22,7 @@ export function useSettings() {
2222 const debug = useStore ( isDebugMode ) ;
2323 const eventLogs = useStore ( isEventLogsEnabled ) ;
2424 const isLocalModel = useStore ( isLocalModelsEnabled ) ;
25- const useLatest = useStore ( useLatestBranch ) ;
25+ const useLatest = useStore ( latestBranch ) ;
2626 const [ activeProviders , setActiveProviders ] = useState < ProviderInfo [ ] > ( [ ] ) ;
2727
2828 // Function to check if we're on stable version
@@ -90,11 +90,11 @@ export function useSettings() {
9090 // If setting hasn't been set by user, check version
9191 checkIsStableVersion ( ) . then ( isStable => {
9292 const shouldUseLatest = ! isStable ;
93- useLatestBranch . set ( shouldUseLatest ) ;
93+ latestBranch . set ( shouldUseLatest ) ;
9494 Cookies . set ( 'useLatestBranch' , String ( shouldUseLatest ) ) ;
9595 } ) ;
9696 } else {
97- useLatestBranch . set ( savedLatestBranch === 'true' ) ;
97+ latestBranch . set ( savedLatestBranch === 'true' ) ;
9898 }
9999 } , [ ] ) ;
100100
@@ -148,7 +148,7 @@ export function useSettings() {
148148 } , [ ] ) ;
149149
150150 const enableLatestBranch = useCallback ( ( enabled : boolean ) => {
151- useLatestBranch . set ( enabled ) ;
151+ latestBranch . set ( enabled ) ;
152152 logStore . logSystem ( `Main branch updates ${ enabled ? 'enabled' : 'disabled' } ` ) ;
153153 Cookies . set ( 'useLatestBranch' , String ( enabled ) ) ;
154154 } , [ ] ) ;
0 commit comments