-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Request when trying to generate a commit message using Anthropic API #2941
Comments
Unfortunately while trying to solve the issue I thought maybe a new API key would work so I deleted the current one and created a new one to use in the extension but found out that the reset API key option is only available for OpenAI models.
I have even tried remove the extension entirely from vscode, remove vscode cache and the extension folder in
%USERPROFILE%\.vscode\extensions
, then reinstalled the extension again but the API is somehow still stored and I can't add a different one.
…________________________________
From: Roberto Vizcarra ***@***.***>
Sent: Thursday, September 28, 2023 11:27:45 PM
To: gitkraken/vscode-gitlens ***@***.***>
Cc: ***@***.*** ***@***.***>; Author ***@***.***>
Subject: Re: [gitkraken/vscode-gitlens] Invalid Request when trying to generate a commit message using Anthropic API (Issue #2941)
Hello,
Thank you for contacting us about this issue. This could be caused by a few different things, so could you first start with trying to clear your API key by running the GitLens: Reset Stored OpenAI Key command? Once you have cleared the API key, you can then try to generate another commit, and you will be prompted to enter your key again.
—
Reply to this email directly, view it on GitHub<#2941 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APLF5F3P5N4LOXPZQE34XH3X4XMUDANCNFSM6AAAAAA5LPHG6I>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sorry about that, in tomorrow's pre-release ( Can you please verify this fix in tomorrow's ( You can switch to the pre-release edition of GitLens, by clicking on the "Switch to Pre-Release version of this extension" from the Extensions view. |
Great! Everything is working as expected now.
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
When trying to generate a commit messaage using Anthropic Claude 2 API key I got invalid request with error code 400
GitLens Version
14.3.0
VS Code Version
Version: 1.82.1 (user setup)
Commit: 6509174151d557a81c9d0b5f8a5a1e9274db5585
Date: 2023-09-08T08:45:05.575Z
Electron: 25.8.0
ElectronBuildId: 23503258
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621
Git Version
git version 2.36.1.windows.1
Logs, Screenshots, Screen Captures, etc
The text was updated successfully, but these errors were encountered: