@@ -99,7 +99,7 @@ export const EditPresetForm: React.FC<Props> = (props) => {
9999 } , [ chatbot , new_url ] )
100100
101101 const supports_temperature = chatbot_config ?. supports_custom_temperature
102- const supports_top_p = chatbot_config ?. default_top_p !== undefined
102+ const supports_top_p = chatbot_config ?. supports_custom_top_p
103103 const supports_thinking_budget = chatbot_config ?. supports_thinking_budget
104104 const supports_reasoning_effort =
105105 chatbot_config ?. supports_reasoning_effort ||
@@ -118,10 +118,10 @@ export const EditPresetForm: React.FC<Props> = (props) => {
118118 chatbot,
119119 ...( prompt_prefix ? { prompt_prefix } : { } ) ,
120120 ...( prompt_suffix ? { prompt_suffix } : { } ) ,
121- ...( temperature !== undefined ? { temperature } : { } ) ,
122- ...( ! supports_top_p || top_p !== chatbot_config . default_top_p
123- ? { top_p }
121+ ...( temperature !== undefined && temperature != 1
122+ ? { temperature }
124123 : { } ) ,
124+ ...( top_p !== undefined && top_p != 0.95 ? { top_p } : { } ) ,
125125 ...( thinking_budget !== undefined ? { thinking_budget } : { } ) ,
126126 ...( reasoning_effort ? { reasoning_effort } : { } ) ,
127127 ...( model ? { model } : { } ) ,
@@ -207,23 +207,21 @@ export const EditPresetForm: React.FC<Props> = (props) => {
207207 }
208208
209209 const reasoning_effort_options = useMemo ( ( ) => {
210- if ( model_info ?. supported_reasoning_efforts ) {
210+ const supported_efforts =
211+ chatbot_config ?. supported_reasoning_efforts ||
212+ model_info ?. supported_reasoning_efforts
213+
214+ if ( supported_efforts ) {
211215 return [
212216 { value : '—' , label : '—' } ,
213- ...model_info . supported_reasoning_efforts . map ( ( effort : string ) => {
217+ ...supported_efforts . map ( ( effort : string ) => {
214218 const capitalized = effort . charAt ( 0 ) . toUpperCase ( ) + effort . slice ( 1 )
215219 return { value : effort , label : capitalized }
216220 } )
217221 ]
218222 }
219- return [
220- { value : '—' , label : '—' } ,
221- { value : 'High' , label : 'High' } ,
222- { value : 'Medium' , label : 'Medium' } ,
223- { value : 'Low' , label : 'Low' } ,
224- { value : 'Minimal' , label : 'Minimal' }
225- ]
226- } , [ model_info ] )
223+ return [ { value : '—' , label : '—' } ]
224+ } , [ chatbot_config , model_info ] )
227225
228226 useEffect ( ( ) => {
229227 if (
@@ -367,7 +365,7 @@ export const EditPresetForm: React.FC<Props> = (props) => {
367365 label = "Reasoning Effort"
368366 html_for = "reasoning-effort"
369367 info = { `Controls how much the model thinks.${
370- chatbot == 'OpenRouter' ? ' Requires reasoning model.' : ''
368+ chatbot == 'OpenRouter' ? ' Requires a reasoning model.' : ''
371369 } `}
372370 >
373371 < Dropdown
@@ -480,7 +478,7 @@ export const EditPresetForm: React.FC<Props> = (props) => {
480478 info = "Influences response variety. Lower values are more predictable; higher values are more diverse."
481479 >
482480 < Slider
483- value = { temperature || 0.5 }
481+ value = { temperature ?? 1 }
484482 onChange = { set_temperature }
485483 min = { 0 }
486484 max = { 2 }
@@ -494,7 +492,7 @@ export const EditPresetForm: React.FC<Props> = (props) => {
494492 info = "Limits token choices to cumulative probability P. Lower values make responses more predictable."
495493 >
496494 < Slider
497- value = { top_p || ( chatbot && CHATBOTS [ chatbot ] . default_top_p ) ! }
495+ value = { top_p ?? 0.95 }
498496 onChange = { set_top_p }
499497 min = { 0 }
500498 max = { 1 }
0 commit comments