From 0805989ee51c3d5051cb7724835f7a3216f1d6cc Mon Sep 17 00:00:00 2001 From: rensumo Date: Fri, 3 Apr 2026 10:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0CodeBuddy=20CN=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/registry/model_definitions.go | 56 ++++++++++++++++++-------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/internal/registry/model_definitions.go b/internal/registry/model_definitions.go index 04d8e467..aae1fd91 100644 --- a/internal/registry/model_definitions.go +++ b/internal/registry/model_definitions.go @@ -93,6 +93,30 @@ func GetAntigravityModels() []*ModelInfo { func GetCodeBuddyModels() []*ModelInfo { now := int64(1748044800) // 2025-05-24 return []*ModelInfo{ + { + ID: "auto", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "Auto", + Description: "Automatic model selection via CodeBuddy", + ContextLength: 128000, + MaxCompletionTokens: 32768, + SupportedEndpoints: []string{"/chat/completions"}, + }, + { + ID: "glm-5.0-turbo", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "GLM-5.0 Turbo", + Description: "GLM-5.0 Turbo via CodeBuddy", + ContextLength: 128000, + MaxCompletionTokens: 32768, + SupportedEndpoints: []string{"/chat/completions"}, + }, { ID: "glm-5.0", Object: "model", @@ -118,13 +142,13 @@ func GetCodeBuddyModels() []*ModelInfo { SupportedEndpoints: []string{"/chat/completions"}, }, { - ID: "minimax-m2.5", + ID: "minimax-m2.7", Object: "model", Created: now, OwnedBy: "tencent", Type: "codebuddy", - DisplayName: "MiniMax M2.5", - Description: "MiniMax M2.5 via CodeBuddy", + DisplayName: "MiniMax M2.7", + Description: "MiniMax M2.7 via CodeBuddy", ContextLength: 200000, MaxCompletionTokens: 32768, SupportedEndpoints: []string{"/chat/completions"}, @@ -141,6 +165,19 @@ func GetCodeBuddyModels() []*ModelInfo { MaxCompletionTokens: 32768, SupportedEndpoints: []string{"/chat/completions"}, }, + { + ID: "kimi-k2-thinking", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "Kimi K2 Thinking", + Description: "Kimi K2 Thinking via CodeBuddy", + ContextLength: 128000, + MaxCompletionTokens: 32768, + Thinking: &ThinkingSupport{ZeroAllowed: true}, + SupportedEndpoints: []string{"/chat/completions"}, + }, { ID: "deepseek-v3-2-volc", Object: "model", @@ -153,19 +190,6 @@ func GetCodeBuddyModels() []*ModelInfo { MaxCompletionTokens: 32768, SupportedEndpoints: []string{"/chat/completions"}, }, - { - ID: "hunyuan-2.0-thinking", - Object: "model", - Created: now, - OwnedBy: "tencent", - Type: "codebuddy", - DisplayName: "Hunyuan 2.0 Thinking", - Description: "Tencent Hunyuan 2.0 Thinking via CodeBuddy", - ContextLength: 128000, - MaxCompletionTokens: 32768, - Thinking: &ThinkingSupport{ZeroAllowed: true}, - SupportedEndpoints: []string{"/chat/completions"}, - }, } }