@@ -3,7 +3,7 @@ import { useAppTranslation } from "@/i18n/TranslationContext"
33import { Select , SelectContent , SelectItem , SelectTrigger , SelectValue } from "@/components/ui"
44
55import { ApiConfiguration } from "../../../../src/shared/api"
6- import { reasoningEfforts } from "../../../../src/schemas"
6+ import { reasoningEfforts , ReasoningEffort as ReasoningEffortType } from "../../../../src/schemas"
77
88interface ReasoningEffortProps {
99 apiConfiguration : ApiConfiguration
@@ -16,20 +16,18 @@ export const ReasoningEffort = ({ apiConfiguration, setApiConfigurationField }:
1616 return (
1717 < div className = "flex flex-col gap-1" >
1818 < div className = "flex justify-between items-center" >
19- < label className = "block font-medium mb-1" > Model Reasoning Effort </ label >
19+ < label className = "block font-medium mb-1" > { t ( "settings:providers.reasoningEffort.label" ) } </ label >
2020 </ div >
2121 < Select
2222 value = { apiConfiguration . reasoningEffort }
23- onValueChange = { ( value ) =>
24- setApiConfigurationField ( "reasoningEffort" , value as "high" | "medium" | "low" )
25- } >
23+ onValueChange = { ( value ) => setApiConfigurationField ( "reasoningEffort" , value as ReasoningEffortType ) } >
2624 < SelectTrigger className = "w-full" >
2725 < SelectValue placeholder = { t ( "settings:common.select" ) } />
2826 </ SelectTrigger >
2927 < SelectContent >
3028 { reasoningEfforts . map ( ( value ) => (
3129 < SelectItem key = { value } value = { value } >
32- { value }
30+ { t ( `settings:providers.reasoningEffort. ${ value } ` ) }
3331 </ SelectItem >
3432 ) ) }
3533 </ SelectContent >
0 commit comments