Add GPT-4o model variants while keeping Gemini 3.1 Pro preview

This commit is contained in:
LMark
2026-02-21 01:41:01 +08:00
parent 57d18bb226
commit f91807b6b9

View File

@@ -141,6 +141,61 @@ func GetGitHubCopilotModels() []*ModelInfo {
ContextLength: 128000,
MaxCompletionTokens: 16384,
},
{
ID: "gpt-4o-2024-11-20",
Object: "model",
Created: now,
OwnedBy: "github-copilot",
Type: "github-copilot",
DisplayName: "GPT-4o (2024-11-20)",
Description: "OpenAI GPT-4o 2024-11-20 via GitHub Copilot",
ContextLength: 128000,
MaxCompletionTokens: 16384,
},
{
ID: "gpt-4o-2024-08-06",
Object: "model",
Created: now,
OwnedBy: "github-copilot",
Type: "github-copilot",
DisplayName: "GPT-4o (2024-08-06)",
Description: "OpenAI GPT-4o 2024-08-06 via GitHub Copilot",
ContextLength: 128000,
MaxCompletionTokens: 16384,
},
{
ID: "gpt-4o-2024-05-13",
Object: "model",
Created: now,
OwnedBy: "github-copilot",
Type: "github-copilot",
DisplayName: "GPT-4o (2024-05-13)",
Description: "OpenAI GPT-4o 2024-05-13 via GitHub Copilot",
ContextLength: 128000,
MaxCompletionTokens: 16384,
},
{
ID: "gpt-4o",
Object: "model",
Created: now,
OwnedBy: "github-copilot",
Type: "github-copilot",
DisplayName: "GPT-4o",
Description: "OpenAI GPT-4o via GitHub Copilot",
ContextLength: 128000,
MaxCompletionTokens: 16384,
},
{
ID: "gpt-4-o-preview",
Object: "model",
Created: now,
OwnedBy: "github-copilot",
Type: "github-copilot",
DisplayName: "GPT-4-o Preview",
Description: "OpenAI GPT-4-o Preview via GitHub Copilot",
ContextLength: 128000,
MaxCompletionTokens: 16384,
},
{
ID: "gpt-5",
Object: "model",