Skip to content

Commit 1728511

Browse files
feat: update kimi-coding logic (#12049)
1 parent e63f667 commit 1728511

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

agent/app/provider/catalog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ var catalog = map[string]Meta{
151151
Key: "kimi-coding",
152152
DisplayName: "Kimi Coding",
153153
Sort: 100,
154-
DefaultBaseURL: "https://kimi-code.moonshot.cn/api",
154+
DefaultBaseURL: "https://api.kimi.com/coding/",
155155
EnvKey: "KIMI_API_KEY",
156156
Enabled: true,
157157
Models: []Model{

agent/app/service/agents.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,11 +1789,11 @@ func writeOpenclawConfig(confDir, provider, modelName, apiType string, maxTokens
17891789
Models: []modelEntry{
17901790
{
17911791
ID: modelID,
1792-
Name: modelID,
1792+
Name: "Kimi for Coding",
17931793
Reasoning: true,
1794-
Input: []string{"text"},
1795-
ContextWindow: 200000,
1796-
MaxTokens: 8192,
1794+
Input: []string{"text", "image"},
1795+
ContextWindow: 262144,
1796+
MaxTokens: 32768,
17971797
Cost: modelCost{},
17981798
},
17991799
},

0 commit comments

Comments
 (0)