Skip to content
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

Closed
MohamedEmary opened this issue Sep 28, 2023 · 4 comments
Assignees
Labels
area-ai Issues or features related to AI bug Something isn't working support-triaged Support has reviewed, verified, or reproduced this verified ✔ Verified
Milestone

Comments

@MohamedEmary
Copy link

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

Error Message

Error Notification Message

@MohamedEmary MohamedEmary added bug Something isn't working triage Needs to be looked at labels Sep 28, 2023
@MohamedEmary MohamedEmary changed the title Invalid Request when trying to generate a commit using Anthropic API Invalid Request when trying to generate a commit message using Anthropic API Sep 28, 2023
@Roberto-Vizcarra Roberto-Vizcarra self-assigned this Sep 28, 2023
@Roberto-Vizcarra Roberto-Vizcarra added support-triaged Support has reviewed, verified, or reproduced this needs-more-info Needs further information, steps, details, etc. area-ai Issues or features related to AI and removed triage Needs to be looked at labels Sep 28, 2023
@MohamedEmary
Copy link
Author

MohamedEmary commented Sep 28, 2023 via email

@eamodio eamodio removed the needs-more-info Needs further information, steps, details, etc. label Sep 28, 2023
@eamodio eamodio self-assigned this Sep 28, 2023
@eamodio eamodio added this to the 14.4 milestone Sep 28, 2023
@eamodio eamodio added pending-release Resolved but not yet released to the stable edition needs-verification Request for verification labels Sep 28, 2023
@eamodio
Copy link
Member

eamodio commented Sep 28, 2023

Sorry about that, in tomorrow's pre-release (v2023.09.29xx) I've changed the Reset OpenAI Key command to be Reset AI Key and now it will properly reset the key for the selected provider (OpenAI or Anthropic). I've also fixed the missing header, so it should fix the 400 error as well.

Can you please verify this fix in tomorrow's (v2023.09.29xx) pre-release edition of GitLens? Thank you so much!

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.

image

@MohamedEmary
Copy link
Author

Great! Everything is working as expected now.

  • I was able to reset my Anthropic API and use another one
  • Invalid request error has been fixed

@eamodio eamodio added verified ✔ Verified and removed needs-verification Request for verification labels Sep 29, 2023
@axosoft-ramint axosoft-ramint removed the pending-release Resolved but not yet released to the stable edition label Oct 14, 2023
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai Issues or features related to AI bug Something isn't working support-triaged Support has reviewed, verified, or reproduced this verified ✔ Verified
Projects
None yet
Development

No branches or pull requests

4 participants