Skip to content

Conversation

@DangerMouseUK
Copy link
Contributor

@DangerMouseUK DangerMouseUK commented Feb 8, 2026

Quick Fix for Hannes and PR11144 for Azure Foundry


Important

This PR adds support for Azure AI Foundry, including new models, API configurations, UI updates, and validation logic.

  • Azure AI Foundry Support:
    • Added azureApiKey, azureResourceName, azureDeploymentName, and azureApiVersion to global-settings.ts and provider-settings.ts.
    • Introduced azureSchema in provider-settings.ts for Azure-specific configurations.
    • Added AzureHandler in providers/azure.ts for handling Azure API interactions.
    • Updated validate.ts to include Azure-specific validation logic.
  • Models:
    • Added azureModels in providers/azure.ts with various Azure model configurations.
    • Updated MODELS_BY_PROVIDER in constants.ts to include Azure models.
  • UI and Translations:
    • Added Azure-specific settings UI in ApiOptions.tsx and providers/Azure.tsx.
    • Updated translations in multiple i18n files to include Azure-related strings.
  • Testing:
    • Added azure.spec.ts for testing Azure handler functionality.

This description was created by Ellipsis for 7007d4e. You can customize this summary. It will automatically update as commits are pushed.

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 8, 2026
@roomote
Copy link
Contributor

roomote bot commented Feb 8, 2026

Rooviewer Clock   See task

Reviewed commits up to bd72bd0. All previously flagged issues are now resolved. No new issues found.

  • API version default mismatch: UI placeholder shows 2025-04-01-preview but handler omits apiVersion when empty, deferring to the SDK's built-in default (comment) -- fixed in 276cb03
  • Azure promptCacheMissTokens incorrectly mapped to cacheWriteTokens: cache misses are not cache writes, and the OpenAI native handler correctly sets this to 0 (comment) -- fixed in bd72bd0
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 8, 2026
@hannesrudolph hannesrudolph force-pushed the pr-11144 branch 3 times, most recently from 7a33e76 to b7b7584 Compare February 9, 2026 17:23
hannesrudolph and others added 13 commits February 9, 2026 13:37
- Add azureApiKey to SECRET_STATE_KEYS for proper configuration detection
- Add Azure validation case in validateModelsAndKeysProvided
- Add validation translations for azureResourceName and azureDeploymentName across all 18 locales

This fixes the issue where the Finish button does nothing when setting up Azure provider in the onboarding workflow.
…ndry

- Add static model metadata for 29 Azure models (from models.dev)
  with Roo-specific flags (reasoning, tools, verbosity) matching
  openAiNativeModels
- Add model picker dropdown to Azure provider settings for model
  capability detection (context window, max tokens, pricing)
- Rename provider label from 'Azure OpenAI' to 'Azure AI Foundry'
  across all 18 locales
- Make API key optional (supports Azure managed identity / Entra ID)
- Update default API version from 2024-08-01-preview to 2025-04-01-preview
- Fix maxOutputTokens validation (filter invalid values <= 0)
- Handler separates deployment name (API calls) from model ID
  (capability lookup) with azureDefaultModelInfo (gpt-4o) fallback
- Remove unhelpful 'Get Azure AI Foundry Access' button
- Prevent stale model IDs from other providers carrying over
- Suppress validation errors on fresh provider selection
…on is empty

Addresses review feedback: the UI placeholder shows '2025-04-01-preview' via
azureOpenAiDefaultApiVersion, so the handler should use the same constant as
fallback instead of silently deferring to the SDK's internal default.
Azure uses OpenAI-compatible caching which does not report cache write
tokens separately. promptCacheMissTokens represents tokens NOT found in
cache (processed from scratch), not tokens written to cache. This aligns
the Azure handler with the OpenAI native handler behavior.
@hannesrudolph hannesrudolph merged commit 571be71 into RooCodeInc:main Feb 9, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Feb 9, 2026
@DangerMouseUK DangerMouseUK deleted the pr-11144 branch February 10, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants