feat(optimization): enable quality

This commit is contained in:
ItzCrazyKns
2025-11-23 19:49:54 +05:30
parent cba3f43b19
commit e0ba476ca4

View File

@@ -24,7 +24,7 @@ const OptimizationModes = [
}, },
{ {
key: 'quality', key: 'quality',
title: 'Quality (Soon)', title: 'Quality',
description: 'Get the most thorough and accurate answer', description: 'Get the most thorough and accurate answer',
icon: ( icon: (
<Star <Star
@@ -75,13 +75,11 @@ const Optimization = () => {
<PopoverButton <PopoverButton
onClick={() => setOptimizationMode(mode.key)} onClick={() => setOptimizationMode(mode.key)}
key={i} key={i}
disabled={mode.key === 'quality'}
className={cn( className={cn(
'p-2 rounded-lg flex flex-col items-start justify-start text-start space-y-1 duration-200 cursor-pointer transition focus:outline-none', 'p-2 rounded-lg flex flex-col items-start justify-start text-start space-y-1 duration-200 cursor-pointer transition focus:outline-none',
optimizationMode === mode.key optimizationMode === mode.key
? 'bg-light-secondary dark:bg-dark-secondary' ? 'bg-light-secondary dark:bg-dark-secondary'
: 'hover:bg-light-secondary dark:hover:bg-dark-secondary', : 'hover:bg-light-secondary dark:hover:bg-dark-secondary',
mode.key === 'quality' && 'opacity-50 cursor-not-allowed',
)} )}
> >
<div className="flex flex-row items-center space-x-1 text-black dark:text-white"> <div className="flex flex-row items-center space-x-1 text-black dark:text-white">