mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-11-30 08:48:15 +00:00
feat(optimization): enable quality
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user