agent: Disable claude-3-7-sonnet-thinking tool support for Copilot Chat (#29999)

We started getting Bad Requests from the Copilot Chat API.
Seems like Microsoft stopped supporting this:
<img width="331" alt="image"
src="https://github.com/user-attachments/assets/46050063-f031-4836-82ff-219bdd45639a"
/>


Release Notes:

- agent: Disable `claude-3-7-sonnet-thinking` for Copilot Chat Provider
because it is not supported by Copilot Chat

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
This commit is contained in:
Bennet Bo Fenner 2025-05-06 14:47:26 +02:00 committed by GitHub
parent 07e6e49583
commit e44367c6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,8 +192,7 @@ impl LanguageModel for CopilotChatLanguageModel {
| CopilotChatModel::Gpt4_1
| CopilotChatModel::O4Mini
| CopilotChatModel::Claude3_5Sonnet
| CopilotChatModel::Claude3_7Sonnet
| CopilotChatModel::Claude3_7SonnetThinking => true,
| CopilotChatModel::Claude3_7Sonnet => true,
_ => false,
}
}