opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[BUG] Error: Request failed with status code 404

Open Asandolo opened this issue 3 years ago • 15 comments

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

Asandolo avatar Apr 28 '23 08:04 Asandolo

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

di-sukharev avatar Apr 28 '23 10:04 di-sukharev

Yes

image

Asandolo avatar Apr 28 '23 10:04 Asandolo

Same error here.

carloshpdoc avatar Apr 28 '23 11:04 carloshpdoc

Same issue here.

.opencommit

OPENAI_API_KEY=MY_API_KEY
model=gpt-4
emoji=true
description=true
language=en

ghazialhouwari avatar Apr 28 '23 12:04 ghazialhouwari

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

mreduar avatar Apr 28 '23 18:04 mreduar

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

I have acces to gpt4

Asandolo avatar Apr 28 '23 19:04 Asandolo

+1

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

martijnvanderlaan avatar Apr 30 '23 19:04 martijnvanderlaan

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

martijnvanderlaan avatar Apr 30 '23 19:04 martijnvanderlaan

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

di-sukharev avatar May 01 '23 09:05 di-sukharev

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:

MartinMinkov avatar May 01 '23 19:05 MartinMinkov

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

di-sukharev avatar May 04 '23 04:05 di-sukharev

@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

ghazialhouwari avatar May 06 '23 16:05 ghazialhouwari

@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

di-sukharev avatar May 07 '23 09:05 di-sukharev

@di-sukharev

damianlluch avatar Aug 09 '23 07:08 damianlluch

@damianlluch ohh, i forgot about it ;)

di-sukharev avatar Aug 09 '23 09:08 di-sukharev