copilot: Add Claude 3.7-Sonnet-Thought model to Copilot Chat (#27409)

- Follow-up to: #25529 

Release Notes:

- Added Claude Sonnet 3.7 Thought to GitHub Copilot Chat
This commit is contained in:
isomo 2025-03-25 17:56:27 +08:00 committed by GitHub
parent 35ec4753b4
commit baf03e355b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View file

@ -186,6 +186,7 @@ impl LanguageModel for CopilotChatLanguageModel {
match self.model {
CopilotChatModel::Claude3_5Sonnet => count_anthropic_tokens(request, cx),
CopilotChatModel::Claude3_7Sonnet => count_anthropic_tokens(request, cx),
CopilotChatModel::Claude3_7SonnetThinking => count_anthropic_tokens(request, cx),
CopilotChatModel::Gemini20Flash => count_google_tokens(request, cx),
_ => {
let model = match self.model {
@ -195,6 +196,7 @@ impl LanguageModel for CopilotChatLanguageModel {
CopilotChatModel::O1 | CopilotChatModel::O3Mini => open_ai::Model::Four,
CopilotChatModel::Claude3_5Sonnet
| CopilotChatModel::Claude3_7Sonnet
| CopilotChatModel::Claude3_7SonnetThinking
| CopilotChatModel::Gemini20Flash => {
unreachable!()
}