copilot_chat: Add Gemini 2.5 Pro support to Copilot Chat (#28660)
This commit is contained in:
@@ -210,7 +210,9 @@ impl LanguageModel for CopilotChatLanguageModel {
|
||||
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),
|
||||
CopilotChatModel::Gemini20Flash | CopilotChatModel::Gemini25Pro => {
|
||||
count_google_tokens(request, cx)
|
||||
}
|
||||
_ => {
|
||||
let model = match self.model {
|
||||
CopilotChatModel::Gpt4o => open_ai::Model::FourOmni,
|
||||
@@ -221,7 +223,8 @@ impl LanguageModel for CopilotChatLanguageModel {
|
||||
CopilotChatModel::Claude3_5Sonnet
|
||||
| CopilotChatModel::Claude3_7Sonnet
|
||||
| CopilotChatModel::Claude3_7SonnetThinking
|
||||
| CopilotChatModel::Gemini20Flash => {
|
||||
| CopilotChatModel::Gemini20Flash
|
||||
| CopilotChatModel::Gemini25Pro => {
|
||||
unreachable!()
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user