diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-12 14:29:30 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-12 14:29:30 +0300 |
| commit | f585cbd56abbef26b2bae590fd451a41110f658f (patch) | |
| tree | 4e869a29eb19cae19ccbf5aefda9d89f01490fcf /internal/release/release.go | |
| parent | 4dc03f26268cfe644a4a8c259f2b0925af3c3465 (diff) | |
fix: use correct Claude CLI model aliases
- Changed from sonnet-4/sonnet-3.5 to sonnet/opus
- Claude CLI uses simple aliases, not version numbers
- Falls back to opus (most capable) then default model
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/release/release.go')
| -rw-r--r-- | internal/release/release.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/release/release.go b/internal/release/release.go index 7349bee..6db36e6 100644 --- a/internal/release/release.go +++ b/internal/release/release.go @@ -330,15 +330,15 @@ func (m *Manager) GenerateAIReleaseNotes(repoPath, repoName, tag string, allTags // Run Claude CLI fmt.Println(" Running Claude CLI command:") - fmt.Printf(" claude --model sonnet-4 <prompt>\n") + fmt.Printf(" claude --model sonnet <prompt>\n") fmt.Printf(" Prompt length: %d characters\n", len(prompt.String())) - cmd := exec.Command("claude", "--model", "sonnet-4", prompt.String()) + cmd := exec.Command("claude", "--model", "sonnet", prompt.String()) output, err := cmd.Output() if err != nil { - // Try with sonnet-3.5 model - fmt.Println(" Trying with sonnet-3.5 model...") - cmd = exec.Command("claude", "--model", "sonnet-3.5", prompt.String()) + // Try with opus model + fmt.Println(" Trying with opus model...") + cmd = exec.Command("claude", "--model", "opus", prompt.String()) output, err = cmd.Output() if err != nil { // Try with default model |
