- Reuses the existing Kimi history normalizer for custom Chat Completions endpoints so switched-model tool calls remain valid.
- Keeps BYOK request construction isolated from Copilot-specific model customizations, preserving configured sampling and endpoint behavior.
- Adds regression coverage for call/result pairing and unchanged BYOK sampling parameters.
Fixes#327794
(Commit message generated by Copilot)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>