Skip to content

FEAT Add AzureMLChatTarget support to GUI#1681

Merged
romanlutz merged 8 commits into
microsoft:mainfrom
blakebullwinkel:bbullwinkel/gui-aml-chat-target
May 4, 2026
Merged

FEAT Add AzureMLChatTarget support to GUI#1681
romanlutz merged 8 commits into
microsoft:mainfrom
blakebullwinkel:bbullwinkel/gui-aml-chat-target

Conversation

@blakebullwinkel
Copy link
Copy Markdown
Contributor

Description

Adds AzureMLChatTarget as a supported target type in the GUI. When selected, the form shows AML-specific params (max new tokens, temperature, top-p, repetition penalty) instead of OpenAI params.

No backend changes needed, TargetService already discovers all PromptTarget subclasses dynamically.

Tests and Documentation

Added two unit tests to CreateTargetDialog.test.tsx:

  • Verifies AzureML target creation sends correct params to the API
  • Verifies conditional field rendering (AzureML fields shown, OpenAI fields hidden)

All 14 tests in the file pass. No doc changes needed, this is a GUI-only feature.

image

@romanlutz
Copy link
Copy Markdown
Contributor

@blakebullwinkel this is failing the test coverage threshold. LMK if you need assistance for this 🙂

romanlutz and others added 3 commits May 4, 2026 11:43
- Add test for AzureML custom params (exercises onChange handlers)
- Add test for dialog close via onOpenChange
- Consolidate duplicated target type lists into single TARGET_TYPE_CONFIG
- Use @/ import alias per frontend style guide

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The deployment-vs-model distinction applies to any target, not just OpenAI.
Move the underlying model switch out of the isOpenAI conditional so it
renders for AzureML and any future target types too.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@romanlutz romanlutz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few cases where it's now if azureml ... else (openai) ... but that will get cleaned up automatically when we add more targets because we can cleanly refactor this to have per-type components. I'm not worried about it with just 2 options.

romanlutz and others added 3 commits May 4, 2026 13:56
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
super().__init__() needs CentralMemory before the token check runs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@romanlutz romanlutz enabled auto-merge May 4, 2026 23:12
@romanlutz romanlutz added this pull request to the merge queue May 4, 2026
Merged via the queue into microsoft:main with commit 53ece09 May 4, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants