@@ -12,9 +12,10 @@ import { inputEventTransform } from "../transforms"
1212type GeminiProps = {
1313 apiConfiguration : ProviderSettings
1414 setApiConfigurationField : ( field : keyof ProviderSettings , value : ProviderSettings [ keyof ProviderSettings ] ) => void
15+ fromWelcomeView ?: boolean
1516}
1617
17- export const Gemini = ( { apiConfiguration, setApiConfigurationField } : GeminiProps ) => {
18+ export const Gemini = ( { apiConfiguration, setApiConfigurationField, fromWelcomeView } : GeminiProps ) => {
1819 const { t } = useAppTranslation ( )
1920
2021 const [ googleGeminiBaseUrlSelected , setGoogleGeminiBaseUrlSelected ] = useState (
@@ -73,26 +74,30 @@ export const Gemini = ({ apiConfiguration, setApiConfigurationField }: GeminiPro
7374 />
7475 ) }
7576
76- < Checkbox
77- className = "mt-6"
78- data-testid = "checkbox-url-context"
79- checked = { ! ! apiConfiguration . enableUrlContext }
80- onChange = { ( checked : boolean ) => setApiConfigurationField ( "enableUrlContext" , checked ) } >
81- { t ( "settings:providers.geminiParameters.urlContext.title" ) }
82- </ Checkbox >
83- < div className = "text-sm text-vscode-descriptionForeground mb-3 mt-1.5" >
84- { t ( "settings:providers.geminiParameters.urlContext.description" ) }
85- </ div >
77+ { ! fromWelcomeView && (
78+ < >
79+ < Checkbox
80+ className = "mt-6"
81+ data-testid = "checkbox-url-context"
82+ checked = { ! ! apiConfiguration . enableUrlContext }
83+ onChange = { ( checked : boolean ) => setApiConfigurationField ( "enableUrlContext" , checked ) } >
84+ { t ( "settings:providers.geminiParameters.urlContext.title" ) }
85+ </ Checkbox >
86+ < div className = "text-sm text-vscode-descriptionForeground mb-3 mt-1.5" >
87+ { t ( "settings:providers.geminiParameters.urlContext.description" ) }
88+ </ div >
8689
87- < Checkbox
88- data-testid = "checkbox-grounding-search"
89- checked = { ! ! apiConfiguration . enableGrounding }
90- onChange = { ( checked : boolean ) => setApiConfigurationField ( "enableGrounding" , checked ) } >
91- { t ( "settings:providers.geminiParameters.groundingSearch.title" ) }
92- </ Checkbox >
93- < div className = "text-sm text-vscode-descriptionForeground mb-3 mt-1.5" >
94- { t ( "settings:providers.geminiParameters.groundingSearch.description" ) }
95- </ div >
90+ < Checkbox
91+ data-testid = "checkbox-grounding-search"
92+ checked = { ! ! apiConfiguration . enableGrounding }
93+ onChange = { ( checked : boolean ) => setApiConfigurationField ( "enableGrounding" , checked ) } >
94+ { t ( "settings:providers.geminiParameters.groundingSearch.title" ) }
95+ </ Checkbox >
96+ < div className = "text-sm text-vscode-descriptionForeground mb-3 mt-1.5" >
97+ { t ( "settings:providers.geminiParameters.groundingSearch.description" ) }
98+ </ div >
99+ </ >
100+ ) }
96101 </ div >
97102 </ >
98103 )
0 commit comments