mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
refactor(azure): hide API version field in Welcome view
The API version field is an advanced option that 99% of users won't change. Hide it in the onboarding Welcome view using the existing simplifySettings pattern (matches OpenRouter's approach for custom base URL).
This commit is contained in:
parent
e462255415
commit
179ab885cb
1 changed files with 15 additions and 11 deletions
|
|
@ -14,7 +14,7 @@ type AzureProps = {
|
|||
simplifySettings?: boolean
|
||||
}
|
||||
|
||||
export const Azure = ({ apiConfiguration, setApiConfigurationField }: AzureProps) => {
|
||||
export const Azure = ({ apiConfiguration, setApiConfigurationField, simplifySettings }: AzureProps) => {
|
||||
const { t } = useAppTranslation()
|
||||
|
||||
const handleInputChange = useCallback(
|
||||
|
|
@ -76,16 +76,20 @@ export const Azure = ({ apiConfiguration, setApiConfigurationField }: AzureProps
|
|||
<div className="text-sm text-vscode-descriptionForeground -mt-2">
|
||||
{t("settings:providers.apiKeyStorageNotice")}
|
||||
</div>
|
||||
<VSCodeTextField
|
||||
value={apiConfiguration?.azureApiVersion || ""}
|
||||
onInput={handleInputChange("azureApiVersion")}
|
||||
placeholder={`Default: ${azureOpenAiDefaultApiVersion}`}
|
||||
className="w-full">
|
||||
<label className="block font-medium mb-1">{t("settings:providers.azureApiVersion")}</label>
|
||||
</VSCodeTextField>
|
||||
<div className="text-sm text-vscode-descriptionForeground -mt-2">
|
||||
{t("settings:providers.azureApiVersionDescription")}
|
||||
</div>
|
||||
{!simplifySettings && (
|
||||
<>
|
||||
<VSCodeTextField
|
||||
value={apiConfiguration?.azureApiVersion || ""}
|
||||
onInput={handleInputChange("azureApiVersion")}
|
||||
placeholder={`Default: ${azureOpenAiDefaultApiVersion}`}
|
||||
className="w-full">
|
||||
<label className="block font-medium mb-1">{t("settings:providers.azureApiVersion")}</label>
|
||||
</VSCodeTextField>
|
||||
<div className="text-sm text-vscode-descriptionForeground -mt-2">
|
||||
{t("settings:providers.azureApiVersionDescription")}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue