Skip to content

Generate Commit Message Error - Anthropic #4071

@billgoode

Description

@billgoode

Description

The AI commit message generator stopped working for me in version 16.3.0. I get this error: Unable to generate commit message: (Anthropic) 400: messages: at least one message is required). This is my configuration in settings:

"gitlens.ai.model": "anthropic:claude-3-5-sonnet-latest", "gitlens.ai.generateCommitMessage.customInstructions": "My instructions..."

I tried resetting the AI keys and recreating the config both with the original and a new API key.

The feature works if I roll back Gitlens to v16.2.2.

GitLens Version

16.3.0

VS Code Version

Version: 1.95.3 (user setup)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100

Git Version

git version 2.45.2.windows.1

Logs, Screenshots, Screen Captures, etc

gitlens.log

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions