feat(registry): add GitHub Copilot gemini-3.1-pro-preview model

This commit is contained in:
Ben Vargas
2026-02-19 23:33:41 -07:00
parent 08e078fc25
commit c1a8adf1ab
2 changed files with 4 additions and 2 deletions

View File

@@ -593,8 +593,9 @@ func GetGitHubCopilotModels() []*ModelInfo {
Type: "github-copilot",
DisplayName: "Gemini 3.1 Pro (Preview)",
Description: "Google Gemini 3.1 Pro Preview via GitHub Copilot",
ContextLength: 1048576,
ContextLength: 173000,
MaxCompletionTokens: 65536,
SupportedEndpoints: []string{"/chat/completions"},
},
{
ID: "gemini-3-flash-preview",
@@ -604,7 +605,7 @@ func GetGitHubCopilotModels() []*ModelInfo {
Type: "github-copilot",
DisplayName: "Gemini 3 Flash (Preview)",
Description: "Google Gemini 3 Flash Preview via GitHub Copilot",
ContextLength: 1048576,
ContextLength: 173000,
MaxCompletionTokens: 65536,
SupportedEndpoints: []string{"/chat/completions"},
},

View File

@@ -7,6 +7,7 @@ func TestGitHubCopilotGeminiModelsAreChatOnly(t *testing.T) {
required := map[string]bool{
"gemini-2.5-pro": false,
"gemini-3-pro-preview": false,
"gemini-3.1-pro-preview": false,
"gemini-3-flash-preview": false,
}