From c0bc4564f5da1f9b61b95d14a5b0af99a5ab8ab7 Mon Sep 17 00:00:00 2001 From: fmoncn Date: Mon, 1 Jun 2026 21:53:03 +0800 Subject: [PATCH 1/2] feat(registry): add DeepSeek V3/V4 Flash/Pro models for CodeBuddy Add three newly available DeepSeek models accessible via CodeBuddy: - deepseek-v3: DeepSeek V3 (128k context) - deepseek-v4-flash: DeepSeek V4 Flash (128k context) - deepseek-v4-pro: DeepSeek V4 Pro (128k context) Verified all three models are live on codebuddy.cn API as of 2026-06-01. kimi-k2-thinking has been deprecated by the provider (returns HTTP 11141). Co-Authored-By: Claude Sonnet 4.6 --- internal/registry/codebuddy_models.go | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/internal/registry/codebuddy_models.go b/internal/registry/codebuddy_models.go index c5ef9ce3..938c4376 100644 --- a/internal/registry/codebuddy_models.go +++ b/internal/registry/codebuddy_models.go @@ -126,5 +126,41 @@ func GetCodeBuddyModels() []*ModelInfo { MaxCompletionTokens: 32768, SupportedEndpoints: []string{"/chat/completions"}, }, + { + ID: "deepseek-v3", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "DeepSeek V3", + Description: "DeepSeek V3 via CodeBuddy", + ContextLength: 128000, + MaxCompletionTokens: 32768, + SupportedEndpoints: []string{"/chat/completions"}, + }, + { + ID: "deepseek-v4-flash", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "DeepSeek V4 Flash", + Description: "DeepSeek V4 Flash via CodeBuddy", + ContextLength: 128000, + MaxCompletionTokens: 32768, + SupportedEndpoints: []string{"/chat/completions"}, + }, + { + ID: "deepseek-v4-pro", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "DeepSeek V4 Pro", + Description: "DeepSeek V4 Pro via CodeBuddy", + ContextLength: 128000, + MaxCompletionTokens: 32768, + SupportedEndpoints: []string{"/chat/completions"}, + }, } } From cbe27e104566d87db1bd331c1259baf5df3e3010 Mon Sep 17 00:00:00 2001 From: fmoncn Date: Mon, 1 Jun 2026 21:58:33 +0800 Subject: [PATCH 2/2] feat(registry): add minimax-m2.5, kimi-k2.6, hy3-preview; remove deprecated kimi-k2-thinking Add newly available CodeBuddy models verified on 2026-06-01: - minimax-m2.5 (200k context) - kimi-k2.6 (256k context) - hy3-preview (128k context) Remove kimi-k2-thinking: provider returns code 11141 "The model has been deprecated". Co-Authored-By: Claude Sonnet 4.6 --- internal/registry/codebuddy_models.go | 31 +++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/internal/registry/codebuddy_models.go b/internal/registry/codebuddy_models.go index 938c4376..f0265e2e 100644 --- a/internal/registry/codebuddy_models.go +++ b/internal/registry/codebuddy_models.go @@ -102,16 +102,39 @@ func GetCodeBuddyModels() []*ModelInfo { SupportedEndpoints: []string{"/chat/completions"}, }, { - ID: "kimi-k2-thinking", + ID: "minimax-m2.5", Object: "model", Created: now, OwnedBy: "tencent", Type: "codebuddy", - DisplayName: "Kimi K2 Thinking", - Description: "Kimi K2 Thinking via CodeBuddy", + DisplayName: "MiniMax M2.5", + Description: "MiniMax M2.5 via CodeBuddy", + ContextLength: 200000, + MaxCompletionTokens: 32768, + SupportedEndpoints: []string{"/chat/completions"}, + }, + { + ID: "kimi-k2.6", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "Kimi K2.6", + Description: "Kimi K2.6 via CodeBuddy", ContextLength: 256000, MaxCompletionTokens: 32768, - Thinking: &ThinkingSupport{ZeroAllowed: true}, + SupportedEndpoints: []string{"/chat/completions"}, + }, + { + ID: "hy3-preview", + Object: "model", + Created: now, + OwnedBy: "tencent", + Type: "codebuddy", + DisplayName: "Hy3 Preview", + Description: "Hy3 Preview via CodeBuddy", + ContextLength: 128000, + MaxCompletionTokens: 32768, SupportedEndpoints: []string{"/chat/completions"}, }, {