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:
parent
35ec4753b4
commit
baf03e355b
2 changed files with 13 additions and 1 deletions
|
@ -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!()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue