feat: Add Azure Foundry provider with OpenAI/Anthropic API mode selection#9029
Closed
TechPrototyper wants to merge 1 commit into
Closed
feat: Add Azure Foundry provider with OpenAI/Anthropic API mode selection#9029TechPrototyper wants to merge 1 commit into
TechPrototyper wants to merge 1 commit into
Conversation
…tion Add support for Azure Foundry as a new inference provider. Azure Foundry endpoints can use either OpenAI-style (/v1/chat/completions) or Anthropic-style (/v1/messages) API formats. Changes: - Add azure-foundry to PROVIDER_REGISTRY (auth.py) - Add azure-foundry overlay in HERMES_OVERLAYS (providers.py) - Add empty model list for azure-foundry (models.py) - Add _model_flow_azure_foundry() interactive setup (main.py) - Add azure-foundry runtime resolution with api_mode support (runtime_provider.py) - Add AZURE_FOUNDRY_API_KEY and AZURE_FOUNDRY_BASE_URL env vars (config.py) Usage: hermes model -> More providers -> Azure Foundry The setup wizard prompts for: - Endpoint URL - API format (OpenAI or Anthropic-style) - API key - Model name Configuration is saved to config.yaml (model.provider, model.base_url, model.api_mode, model.default) and ~/.hermes/.env (AZURE_FOUNDRY_API_KEY).
Contributor
|
Merged via #15845 along with the other open Azure PRs as one consolidated salvage + an auto-detection feature on top (URL sniff + Your commit was cherry-picked with authorship preserved ( |
Collaborator
This was referenced Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Azure Foundry as a new provider, enabling users to connect Hermes Agent to Azure AI endpoints with flexible API format selection.
Why This Matters
/v1/chat/completions) AND Anthropic-style (/v1/messages) endpoints — users select the format during setupChanges (236 lines, 6 files)
hermes_cli/auth.pyhermes_cli/config.pyAZURE_FOUNDRY_API_KEY+AZURE_FOUNDRY_BASE_URLenv varshermes_cli/main.pyhermes modelflow with endpoint/API-mode/key/model wizardhermes_cli/models.pyhermes_cli/providers.pyhermes_cli/runtime_provider.pyUsage
Testing
🙏 Request for quick review: I'd like to switch back to tracking
mainwithout maintaining local patches. Happy to address any feedback promptly!