Fix error when requesting completion to Copilot Chat without tools (#30007)

The API will return a Bad Request (with no error message) when tools
were used previously in the conversation but no tools are provided as
part of a new request.

Inserting a dummy tool seems to circumvent this error.

Release Notes:

- Fixed an error that could sometimes occur when editing using Copilot
Chat.

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
0f50e6b1d1Antonio Scandurra committed on 5/6/2025, 2:19:59 PM· committed by GitHubparentfed5f89
1 file changedLine totals unavailable