@@ -97,11 +97,11 @@ export const Gemini = ({ apiConfiguration, setApiConfigurationField, currentMode
9797 min = { 0 }
9898 max = { 1 }
9999 step = { 0.01 }
100- value = { [ apiConfiguration . topP ?? 0 ] }
100+ value = { [ apiConfiguration . topP ?? 0.95 ] }
101101 onValueChange = { ( values : number [ ] ) => setApiConfigurationField ( "topP" , values [ 0 ] ) }
102102 className = "flex-grow"
103103 />
104- < span className = "w-10 text-right" > { ( apiConfiguration . topP ?? 0 ) . toFixed ( 2 ) } </ span >
104+ < span className = "w-10 text-right" > { ( apiConfiguration . topP ?? 0.95 ) . toFixed ( 2 ) } </ span >
105105 </ div >
106106 < div className = "text-sm text-vscode-descriptionForeground" >
107107 { t ( "settings:providers.geminiParameters.topP.description" ) }
@@ -118,11 +118,11 @@ export const Gemini = ({ apiConfiguration, setApiConfigurationField, currentMode
118118 min = { 0 }
119119 max = { 100 }
120120 step = { 1 }
121- value = { [ apiConfiguration . topK ?? 0 ] }
121+ value = { [ apiConfiguration . topK ?? 64 ] }
122122 onValueChange = { ( values : number [ ] ) => setApiConfigurationField ( "topK" , values [ 0 ] ) }
123123 className = "flex-grow"
124124 />
125- < span className = "w-10 text-right" > { apiConfiguration . topK ?? 0 } </ span >
125+ < span className = "w-10 text-right" > { apiConfiguration . topK ?? 64 } </ span >
126126 </ div >
127127 < div className = "text-sm text-vscode-descriptionForeground" >
128128 { t ( "settings:providers.geminiParameters.topK.description" ) }
@@ -139,12 +139,12 @@ export const Gemini = ({ apiConfiguration, setApiConfigurationField, currentMode
139139 min = { 3000 }
140140 max = { modelInfo . maxTokens }
141141 step = { 1 }
142- value = { [ apiConfiguration . maxOutputTokens ?? 0 ] }
142+ value = { [ apiConfiguration . maxOutputTokens ?? modelInfo . maxTokens ] }
143143 onValueChange = { ( values : number [ ] ) => setApiConfigurationField ( "maxOutputTokens" , values [ 0 ] ) }
144144 className = "flex-grow"
145145 />
146146 < VSCodeTextField
147- value = { ( apiConfiguration . maxOutputTokens ?? 0 ) . toString ( ) }
147+ value = { ( apiConfiguration . maxOutputTokens ?? modelInfo . maxTokens ) . toString ( ) }
148148 type = "text"
149149 inputMode = "numeric"
150150 onInput = { handleInputChange ( "maxOutputTokens" , ( e ) => {
0 commit comments