From f91807b6b915ce174ab7672cd82dc2396f8c6074 Mon Sep 17 00:00:00 2001 From: LMark <2312936963@qq.com> Date: Sat, 21 Feb 2026 01:41:01 +0800 Subject: [PATCH] Add GPT-4o model variants while keeping Gemini 3.1 Pro preview --- internal/registry/model_definitions.go | 55 ++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/internal/registry/model_definitions.go b/internal/registry/model_definitions.go index 86d119fa..5f0ccccf 100644 --- a/internal/registry/model_definitions.go +++ b/internal/registry/model_definitions.go @@ -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",