OkGoDoIt / OpenAI-API-dotnet

An unofficial C#/.NET SDK for accessing the OpenAI GPT-3 API
https://www.nuget.org/packages/OpenAI/
Other
1.86k stars 433 forks source link

Unable to use Model("gpt-4o") #226

Open hoangps opened 1 month ago

hoangps commented 1 month ago

I am not sure if there is any technical issue that blocks me from using gpt-4o version, which is told to be a better version than gpt-4. I am using it for CreateChatCompletionAsync

I attempted to use new Model("gpt-4o") but unsuccessful. It responded:

I'm sorry, but it seems like there might be an error in your input "gpt-4o." Can you please provide me with the necessary information so that I can ....

Using Model.GPT4 works just fine.

hoangps commented 1 month ago

I changed to "gpt-4o-2024-08-06" (instead of "gpt-4o") and it responds normally now. However, in the response object, it says the model is gpt-3.5 turbo.