Merge branch 'main' into token-usage

This commit is contained in:
Anirban Kar
2024-12-16 19:56:20 +05:30
committed by GitHub
7 changed files with 49 additions and 55 deletions

View File

@@ -3,15 +3,8 @@ import { Switch } from '~/components/ui/Switch';
import { useSettings } from '~/lib/hooks/useSettings';
export default function FeaturesTab() {
const {
debug,
enableDebugMode,
isLocalModel,
enableLocalModels,
enableEventLogs,
useLatestBranch,
enableLatestBranch,
} = useSettings();
const { debug, enableDebugMode, isLocalModel, enableLocalModels, enableEventLogs, latestBranch, enableLatestBranch } = useSettings();
const handleToggle = (enabled: boolean) => {
enableDebugMode(enabled);
@@ -34,7 +27,7 @@ export default function FeaturesTab() {
Check for updates against the main branch instead of stable
</p>
</div>
<Switch className="ml-auto" checked={useLatestBranch} onCheckedChange={enableLatestBranch} />
<Switch className="ml-auto" checked={latestBranch} onCheckedChange={enableLatestBranch} />
</div>
</div>
</div>