Skip to content

Commit 5ecdba6

Browse files
authored
feat(registry): add verified CodeBuddy models (#111)
Add the WorkBuddy-documented Hy3 preview, MiniMax M2.5, and Kimi K2.6 entries to the CodeBuddy static catalog while retaining existing model IDs that lack deprecation evidence.
1 parent d9161c7 commit 5ecdba6

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

internal/registry/codebuddy_models.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ func GetCodeBuddyModels() []*ModelInfo {
8989
MaxCompletionTokens: 32768,
9090
SupportedEndpoints: []string{"/chat/completions"},
9191
},
92+
{
93+
ID: "minimax-m2.5",
94+
Object: "model",
95+
Created: now,
96+
OwnedBy: "tencent",
97+
Type: "codebuddy",
98+
DisplayName: "MiniMax M2.5",
99+
Description: "MiniMax M2.5 via CodeBuddy",
100+
ContextLength: 200000,
101+
MaxCompletionTokens: 32768,
102+
SupportedEndpoints: []string{"/chat/completions"},
103+
},
92104
{
93105
ID: "kimi-k2.5",
94106
Object: "model",
@@ -101,6 +113,18 @@ func GetCodeBuddyModels() []*ModelInfo {
101113
MaxCompletionTokens: 32768,
102114
SupportedEndpoints: []string{"/chat/completions"},
103115
},
116+
{
117+
ID: "kimi-k2.6",
118+
Object: "model",
119+
Created: now,
120+
OwnedBy: "tencent",
121+
Type: "codebuddy",
122+
DisplayName: "Kimi K2.6",
123+
Description: "Kimi K2.6 via CodeBuddy",
124+
ContextLength: 256000,
125+
MaxCompletionTokens: 32768,
126+
SupportedEndpoints: []string{"/chat/completions"},
127+
},
104128
{
105129
ID: "kimi-k2-thinking",
106130
Object: "model",
@@ -126,5 +150,18 @@ func GetCodeBuddyModels() []*ModelInfo {
126150
MaxCompletionTokens: 32768,
127151
SupportedEndpoints: []string{"/chat/completions"},
128152
},
153+
{
154+
ID: "hy3-preview",
155+
Object: "model",
156+
Created: now,
157+
OwnedBy: "tencent",
158+
Type: "codebuddy",
159+
DisplayName: "Hy3 Preview",
160+
Description: "Hy3 Preview via CodeBuddy",
161+
ContextLength: 128000,
162+
MaxCompletionTokens: 32768,
163+
Thinking: &ThinkingSupport{ZeroAllowed: true},
164+
SupportedEndpoints: []string{"/chat/completions"},
165+
},
129166
}
130167
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package registry
2+
3+
import "testing"
4+
5+
func TestGetCodeBuddyModelsIncludesVerifiedBuiltIns(t *testing.T) {
6+
models := GetCodeBuddyModels()
7+
byID := make(map[string]*ModelInfo, len(models))
8+
for _, model := range models {
9+
if model == nil {
10+
continue
11+
}
12+
if _, exists := byID[model.ID]; exists {
13+
t.Fatalf("duplicate CodeBuddy model ID %q", model.ID)
14+
}
15+
byID[model.ID] = model
16+
}
17+
18+
for _, id := range []string{"hy3-preview", "minimax-m2.5", "kimi-k2.6", "kimi-k2-thinking"} {
19+
if byID[id] == nil {
20+
t.Fatalf("expected CodeBuddy model %q to be registered", id)
21+
}
22+
}
23+
24+
if byID["hy3-preview"].Thinking == nil {
25+
t.Fatal("expected hy3-preview to advertise thinking support")
26+
}
27+
}

0 commit comments

Comments
 (0)