Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Z.AI default model updated from `glm-4.7` to `glm-5.1`

## [2.3.4] - 2026-03-26

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions cmd/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
`
err := os.WriteFile(configPath, []byte(configContent), 0600)
if err != nil {
Expand Down Expand Up @@ -54,7 +54,7 @@ providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
`
err := os.WriteFile(configPath, []byte(configContent), 0600)
if err != nil {
Expand Down Expand Up @@ -120,7 +120,7 @@ providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
`
err := os.WriteFile(configPath, []byte(configContent), 0600)
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions docs/architecture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ kairo/
default_provider: zai
default_harness: claude
default_models:
zai: glm-4.7
zai: glm-5.1
providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
env_vars:
- ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.7-flash
```
Expand All @@ -157,7 +157,7 @@ Notes:

| Provider | Base URL | Model | API Key Required |
| ---------- | ------------------------------------ | ----------------- | ---------------- |
| `zai` | `https://api.z.ai/api/anthropic` | `glm-4.7` | Yes |
| `zai` | `https://api.z.ai/api/anthropic` | `glm-5.1` | Yes |
| `minimax` | `https://api.minimax.io/anthropic` | `MiniMax-M2.7` | Yes |
| `deepseek` | `https://api.deepseek.com/anthropic` | `deepseek-chat` | Yes |
| `kimi` | `https://api.kimi.com/coding/` | `kimi-for-coding` | Yes |
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ kairo -- "Quick question"

| Provider | Default Model | API Key Required |
| ---------- | ----------------- | ---------------- |
| `zai` | `glm-4.7` | Yes |
| `zai` | `glm-5.1` | Yes |
| `minimax` | `MiniMax-M2.7` | Yes |
| `kimi` | `kimi-for-coding` | Yes |
| `deepseek` | `deepseek-chat` | Yes |
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ Notes:
default_provider: zai
default_harness: claude
default_models:
zai: glm-4.7
zai: glm-5.1
minimax: MiniMax-M2.7
providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
env_vars:
- ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.7-flash
minimax:
Expand Down Expand Up @@ -98,7 +98,7 @@ Generated on first setup. The file contains the private identity line followed b

| Provider | API Key Required | Default Base URL | Default Model |
| ---------- | ---------------- | ------------------------------------ | ----------------- |
| `zai` | Yes | `https://api.z.ai/api/anthropic` | `glm-4.7` |
| `zai` | Yes | `https://api.z.ai/api/anthropic` | `glm-5.1` |
| `minimax` | Yes | `https://api.minimax.io/anthropic` | `MiniMax-M2.7` |
| `kimi` | Yes | `https://api.kimi.com/coding/` | `kimi-for-coding` |
| `deepseek` | Yes | `https://api.deepseek.com/anthropic` | `deepseek-chat` |
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Built-in and custom provider configurations.

| Provider | Base URL | Model | API Key |
| ---------- | ------------------------------------ | ----------------- | ------- |
| `zai` | `https://api.z.ai/api/anthropic` | `glm-4.7` | Yes |
| `zai` | `https://api.z.ai/api/anthropic` | `glm-5.1` | Yes |
| `minimax` | `https://api.minimax.io/anthropic` | `MiniMax-M2.7` | Yes |
| `deepseek` | `https://api.deepseek.com/anthropic` | `deepseek-chat` | Yes |
| `kimi` | `https://api.kimi.com/coding/` | `kimi-for-coding` | Yes |
Expand Down
6 changes: 3 additions & 3 deletions internal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ Example schema:
default_provider: zai
default_harness: claude
default_models:
zai: glm-4.7
zai: glm-5.1
providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
```

### `crypto/`
Expand Down Expand Up @@ -100,7 +100,7 @@ Built-in providers:

| Provider | Base URL | Model | API Key |
| ---------- | ------------------------------------ | ----------------- | ------- |
| `zai` | `https://api.z.ai/api/anthropic` | `glm-4.7` | Yes |
| `zai` | `https://api.z.ai/api/anthropic` | `glm-5.1` | Yes |
| `minimax` | `https://api.minimax.io/anthropic` | `MiniMax-M2.7` | Yes |
| `deepseek` | `https://api.deepseek.com/anthropic` | `deepseek-chat` | Yes |
| `kimi` | `https://api.kimi.com/coding/` | `kimi-for-coding` | Yes |
Expand Down
8 changes: 4 additions & 4 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
`
err := os.WriteFile(configPath, []byte(configContent), 0600)
if err != nil {
Expand Down Expand Up @@ -89,7 +89,7 @@ providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
`
if err := os.WriteFile(configPath, []byte(configWithUnknownField), 0600); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -362,7 +362,7 @@ providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
`
if err := os.WriteFile(oldConfigPath, []byte(configContent), 0600); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -513,7 +513,7 @@ providers:
zai:
name: Z.AI
base_url: https://api.z.ai/api/anthropic
model: glm-4.7
model: glm-5.1
`
if err := os.WriteFile(oldConfigPath, []byte(configContent), 0600); err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion internal/config/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func TestFormatMigrationChanges(t *testing.T) {
t.Run("FormatsChangesCorrectly", func(t *testing.T) {
changes := []MigrationChange{
{Provider: "minimax", Field: "model", Old: "MiniMax-M2", New: "MiniMax-M2.7"},
{Provider: "zai", Field: "model", Old: "glm-4.5", New: "glm-4.7"},
{Provider: "zai", Field: "model", Old: "glm-4.5", New: "glm-5.1"},
}

result := FormatMigrationChanges(changes)
Expand Down
2 changes: 1 addition & 1 deletion internal/providers/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var BuiltInProviders = map[string]ProviderDefinition{
"zai": {
Name: "Z.AI",
BaseURL: "https://api.z.ai/api/anthropic",
Model: "glm-4.7",
Model: "glm-5.1",
RequiresAPIKey: true,
EnvVars: []string{"ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.7-flash"},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/providers/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestGetBuiltInProvider(t *testing.T) {
wantExists: true,
wantName: "Z.AI",
wantBaseURL: "https://api.z.ai/api/anthropic",
wantModel: "glm-4.7",
wantModel: "glm-5.1",
wantRequires: true,
},
{
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/full_workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func TestFullWorkflowHarnessSwitching(t *testing.T) {
DefaultHarness: "claude",
Providers: map[string]config.Provider{
"anthropic": {Name: "Native Anthropic"},
"zai": {Name: "Z.AI", BaseURL: "https://api.z.ai/api/anthropic", Model: "glm-4.7"},
"zai": {Name: "Z.AI", BaseURL: "https://api.z.ai/api/anthropic", Model: "glm-5.1"},
},
}
if err := config.SaveConfig(context.Background(), tmpDir, cfg); err != nil {
Expand Down Expand Up @@ -183,7 +183,7 @@ func TestFullWorkflowListAndStatus(t *testing.T) {
DefaultProvider: "zai",
Providers: map[string]config.Provider{
"anthropic": {Name: "Native Anthropic"},
"zai": {Name: "Z.AI", BaseURL: "https://api.z.ai/api/anthropic", Model: "glm-4.7"},
"zai": {Name: "Z.AI", BaseURL: "https://api.z.ai/api/anthropic", Model: "glm-5.1"},
"minimax": {Name: "MiniMax", BaseURL: "https://api.minimax.chat/v1", Model: "minimax-abab6.5"},
"deepseek": {Name: "DeepSeek", BaseURL: "https://api.deepseek.com/v1", Model: "deepseek-chat"},
},
Expand Down
Loading