di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.15k stars 328 forks source link

[BUG] Error: Request failed with status code 404 #148

Closed Asandolo closed 1 year ago

Asandolo commented 1 year ago

Opencommit Version

2.0.4

Node Version

18.12.1

NPM Version

9.6.5

What OS are you seeing the problem on?

No response

What happened?

When i try to generate a commit i hve this error Error: Request failed with status code 404

Expected Behavior

Generate a commit message

Current Behavior

Not gerating commit and trow an error oc

image

Possible Solution

No response

Steps to Reproduce

config openai api key config emoji switch to gpt4 try oc command

Relevant log output

No response

di-sukharev commented 1 year ago

are you sure you use right model name? oc config set model=gpt-4

Asandolo commented 1 year ago

Yes

image

carloshpdoc commented 1 year ago

Same error here.

ghazialhouwari commented 1 year ago

Same issue here.

.opencommit

OPENAI_API_KEY=MY_API_KEY
model=gpt-4
emoji=true
description=true
language=en
mreduar commented 1 year ago

This is probably because you do not have access to the GPT-4 beta.

Asandolo commented 1 year ago

This is probably because you do not have access to the GPT-4 beta.

I have acces to gpt4

martijnvanderlaan commented 1 year ago

+1

Also get the 404 error, but not when I commit a few files at a time. Maybe something like a token limit?

martijnvanderlaan commented 1 year ago

FYI, I noticed that I also got the error when trying to commit a .pbxproj file

di-sukharev commented 1 year ago

@martijnvanderlaan thanks for help here, do you want to investigate and make a PR helping making the world a better place?

MartinMinkov commented 1 year ago

I had the same issue, which was an error on my part. I assumed that because I subscribe to ChatGPT, I would have API access to chat-gpt4 if I created an API key, but this is not the case right now. This is a user error on my part; I just want to remind anyone who looks at this issue to make sure you actually have API access to gpt-4. :sweat_smile:

di-sukharev commented 1 year ago

guys, please confirm that you have gpt-4 access <3

ghazialhouwari commented 1 year ago

@di-sukharev as @MartinMinkov mentioned I thought I have an acces to gpt-4, but it turns out the API is a separate thing. My bad

di-sukharev commented 1 year ago

@di-sukharev as @MartinMinkov mentioned I thought I have an acces to gpt-4, but it turns out the API is a separate thing. My bad

yep, thanks for update, if you have ChatGPT+ it doesnt mean you have gpt-4 api access

damianlluch commented 1 year ago

@di-sukharev

di-sukharev commented 1 year ago

@damianlluch ohh, i forgot about it ;)