OpenAI-API-dotnet icon indicating copy to clipboard operation
OpenAI-API-dotnet copied to clipboard

Are there plans to incorporate GPT4?

Open Tronald opened this issue 1 year ago • 7 comments

First off, thank you for such an amazing library.

OpenAI is starting to give people early access to the GPT-4 API's. I see that this library is growing exponentially and I know how difficult such projects can be to maintain. Are there internal plans to add GPT-4 to available models?

https://platform.openai.com/docs/models/gpt-4

Tronald avatar Mar 27 '23 19:03 Tronald

It should work with GPT4 as long as you manually pass that model to the chat endpoint. I’ll get the GPT4 model added officially soon but for right now you can just use conversation.model = new Model(“gpt-4”) and it should work.

On Mon, Mar 27, 2023 at 12:23 PM Justin Gielski @.***> wrote:

First off, thank you for such an amazing library.

OpenAI is starting to give people early access to the GPT-4 API's. I see that this library is growing exponentially and I know how difficult such projects can be to maintain. Are there internal plans to add GPT-4 to available models?

https://platform.openai.com/docs/models/gpt-4

OkGoDoIt avatar Mar 27 '23 20:03 OkGoDoIt

Beautiful! You are a legend thank you!

Tronald avatar Mar 27 '23 21:03 Tronald

I’ve got the gpt4 models explicitly added in the 1.7 release

OkGoDoIt avatar Apr 05 '23 01:04 OkGoDoIt

Does the response of "The model: gpt-4 does not existing" mean the account is not whitelisted for GPT-4? I'm using my own API key.

flipdoubt avatar Apr 05 '23 19:04 flipdoubt

I’m not sure, but probably. Are you able to access the GPT-4 model on the playground when logged in to the openai developer portal?

Gpt-4 still requires account whitelisting, so if you don’t have access yet, you’ll need to sign up for the waitlist. They seem to be approving people reasonably quickly though.

OkGoDoIt avatar Apr 09 '23 05:04 OkGoDoIt

Does the response of "The model: gpt-4 does not existing" mean the account is not whitelisted for GPT-4? I'm using my own API key.

When calling the Models endpoint, I get this list (which does not include gpt-4) ?

ada
ada-code-search-code
ada-code-search-text
ada-search-document
ada-search-query
ada-similarity
ada:2020-05-03
babbage
babbage-code-search-code
babbage-code-search-text
babbage-search-document
babbage-search-query
babbage-similarity
babbage:2020-05-03
code-davinci-edit-001
code-search-ada-code-001
code-search-ada-text-001
code-search-babbage-code-001
code-search-babbage-text-001
curie
curie-instruct-beta
curie-search-document
curie-search-query
curie-similarity
curie:2020-05-03
cushman:2020-05-03
davinci
davinci-if:3.0.0
davinci-instruct-beta
davinci-instruct-beta:2.0.0
davinci-search-document
davinci-search-query
davinci-similarity
davinci:2020-05-03
gpt-3.5-turbo
gpt-3.5-turbo-0301
if-curie-v2
if-davinci-v2
if-davinci:3.0.0
text-ada-001
text-ada:001
text-babbage-001
text-babbage:001
text-curie-001
text-curie:001
text-davinci-001
text-davinci-002
text-davinci-003
text-davinci-edit-001
text-davinci:001
text-embedding-ada-002
text-search-ada-doc-001
text-search-ada-query-001
text-search-babbage-doc-001
text-search-babbage-query-001
text-search-curie-doc-001
text-search-curie-query-001
text-search-davinci-doc-001
text-search-davinci-query-001
text-similarity-ada-001
text-similarity-babbage-001
text-similarity-curie-001
text-similarity-davinci-001
whisper-1

Maybe not yet whitelisted? (Although I have access to GPT-4 in the browser chat.openai.com).

StefH avatar Apr 15 '23 13:04 StefH

The GPT4 model wasn't appearing to me either when querying it using this library, even if it was available in the OpenAI Playground. The solution was to also pass the Organization ID, not just the API key, when initializing the API.

var auth = new APIAuthentication("sk-my-openai-key", "org-my-organization-id");
var api = new OpenAI_API.OpenAIAPI(auth);
``

vladnega avatar May 06 '23 21:05 vladnega