fix: add missing translation for Azure API version detection message

- Add translation key 'azureApiVersionDetected' to English locale
- Update OpenAICompatible component to use translation function
- Addresses Ellipsis bot comment about internationalization
This commit is contained in:
Daniel Riccio 2025-07-17 13:54:17 -05:00
parent 85215b0fb2
commit cc7e5949b5
No known key found for this signature in database
GPG key ID: FFD5FD825F8E8209
2 changed files with 7 additions and 5 deletions

View file

@ -203,11 +203,12 @@ export const OpenAICompatible = ({
{t("settings:modelInfo.azureApiVersion")}
</Checkbox>
{showApiVersionExtraction && (
<div className="text-sm text-vscode-descriptionForeground ml-6 mb-2">
API version detected in Base URL: <strong>{extractedApiVersion}</strong>
<br />
This will be used automatically. Enable the checkbox above to override.
</div>
<div
className="text-sm text-vscode-descriptionForeground ml-6 mb-2"
dangerouslySetInnerHTML={{
__html: t("settings:modelInfo.azureApiVersionDetected", { version: extractedApiVersion }),
}}
/>
)}
{azureApiVersionSelected && (
<VSCodeTextField

View file

@ -631,6 +631,7 @@
"enableR1FormatTips": "Must be enabled when using R1 models such as QWQ to prevent 400 errors",
"useAzure": "Use Azure",
"azureApiVersion": "Set Azure API version",
"azureApiVersionDetected": "API version detected in Base URL: <strong>{{version}}</strong><br />This will be used automatically. Enable the checkbox above to override.",
"gemini": {
"freeRequests": "* Free up to {{count}} requests per minute. After that, billing depends on prompt size.",
"pricingDetails": "For more info, see pricing details.",