Skip to content

Commit 760c974

Browse files
authored
Merge pull request #3 from Jacky040124/model/update
feat: replace gemini2.5 with kimi k2 as no longer supported
2 parents 9f611e6 + 0a406f6 commit 760c974

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

pkg/model_selector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type ModelSelectorModel struct {
6262
// NewModelSelector creates a new model selector
6363
func NewModelSelector(currentModel string) ModelSelectorModel {
6464
models := GetAvailableModels()
65-
modelOrder := []string{"deepseek-r1", "deepseek-v3", "llama-4", "gemini", "mistral"}
65+
modelOrder := []string{"kimi", "deepseek-r1", "deepseek-v3", "llama-4", "mistral"}
6666

6767
// Find current model index for initial cursor position
6868
cursor := 0

pkg/models.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ func GetAvailableModels() map[string]Model {
5858
IsThinking: false,
5959
IsMultimodal: true,
6060
},
61-
"gemini": {
62-
ID: "gemini",
63-
Name: "Google Gemini 2.5 Pro",
64-
APIName: "google/gemini-2.5-pro-exp-03-25:free",
65-
Description: "Latest Google model with advanced multimodal capabilities",
66-
Provider: "Google",
67-
Features: []string{"Latest Tech", "Multimodal", "Comprehensive"},
68-
ContextLen: 1000000,
69-
BestFor: "Latest AI capabilities, comprehensive research",
61+
"kimi": {
62+
ID: "kimi",
63+
Name: "MoonshotAI Kimi K2",
64+
APIName: "moonshotai/kimi-k2:free",
65+
Description: "Advanced Chinese AI model with strong reasoning capabilities",
66+
Provider: "MoonshotAI",
67+
Features: []string{"Strong Reasoning", "Chinese & English", "Code Generation"},
68+
ContextLen: 200000,
69+
BestFor: "Bilingual research, code analysis, logical reasoning",
7070
IsThinking: false,
71-
IsMultimodal: true,
71+
IsMultimodal: false,
7272
},
7373
"mistral": {
7474
ID: "mistral",
@@ -145,7 +145,7 @@ func FormatModelList(currentModel string) string {
145145

146146
b.WriteString(CyanBold("✨ Available Models:\n\n"))
147147

148-
for _, id := range []string{"deepseek-r1", "deepseek-v3", "llama-4", "gemini", "mistral"} {
148+
for _, id := range []string{"kimi", "deepseek-r1", "deepseek-v3", "llama-4", "mistral"} {
149149
model := models[id]
150150
current := ""
151151
if id == currentModel {

ptn

10.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)