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

Model GPT-4: The model: gpt-4 does not exist #219

Closed
itsahedge opened this issue Apr 2, 2023 · 5 comments
Closed

Model GPT-4: The model: gpt-4 does not exist #219

itsahedge opened this issue Apr 2, 2023 · 5 comments

Comments

@itsahedge
Copy link

itsahedge commented Apr 2, 2023

go-openai v1.5.7

I'm wondering why specifying GPT-4 as the Model returns an error indicating it does not exist?

This is taken from the example, but changes the model to use GPT-4.

error: The model: `gpt-4` does not exist
resp, err := g.openAi.CreateChatCompletion(
		ctx,
		openai.ChatCompletionRequest{
			Model: openai.GPT4,
			Messages: []openai.ChatCompletionMessage{
				{
					Role:    openai.ChatMessageRoleUser,
					Content: "Hello!",
				},
			},
		},
	)
@kotaroyamazaki
Copy link
Contributor

me too.

Do you have access to the GPT4 API?
Seems like you would need to register and be authorized on waitlist.
https://openai.com/waitlist/gpt-4-api
image

On another matter.
It seems strange that this response error is a 404, but it seems to be a problem on the openai side, not the library side

@itsahedge
Copy link
Author

me too.

Do you have access to the GPT4 API? Seems like you would need to register and be authorized on waitlist. https://openai.com/waitlist/gpt-4-api image

On another matter. It seems strange that this response error is a 404, but it seems to be a problem on the openai side, not the library side

Yes I have access to GPT4 already with my OpenAI account. I can currently use GPT-4 in the normal ChatGPT interface.

@sashabaranov
Copy link
Owner

@itsahedge As far as I understand, ChatGPT interface access ≠ API access. I've got an email inviting me to try GPT4 and the exact same usage with Model: openai.GPT4 works for me.

@itsahedge
Copy link
Author

@itsahedge As far as I understand, ChatGPT interface access ≠ API access. I've got an email inviting me to try GPT4 and the exact same usage with Model: openai.GPT4 works for me.

Ah. I didn't realize there was a separate access invite for GPT-4 through their waitlist. Will close this.

@oliverbenns
Copy link

It seems GPT 4 is now enabled for all api users who have a history of successful payments: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4

However I still do not seem to have access, it might be because even though I have billing enabled, I still am under their free tier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants