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

[Request] Add support for gpt-4o model

Open kamilk91 opened this issue 1 year ago • 4 comments

kamilk91 avatar May 15 '24 09:05 kamilk91

@kamilk91 Added it in my pull request or you can get it at: https://github.com/glienard/OpenAI-API-dotnet

glienard avatar May 15 '24 14:05 glienard

Please merge this ASAP @kamilk91

spppaul avatar May 21 '24 15:05 spppaul

https://github.com/OkGoDoIt/OpenAI-API-dotnet/pull/214

spppaul avatar May 21 '24 15:05 spppaul

I've added omni for now by extending the Model class in my project.

public class AIModelExtended : Model { public static Model GPT4_Omni => new Model("gpt-4o") { OwnedBy = "openai" }; }

scara1701 avatar May 24 '24 10:05 scara1701

Does anyone know what the hold up is on getting this done?

ghost avatar May 30 '24 17:05 ghost

I’m unfortunately not allowed to announce the details publicly for another week or two, but I promise it’ll be worth the wait. There’s gonna be a lot better and more official support coming soon. Keep an eye on the Microsoft blogs 😉

In the meantime, you can always pass in the model name as a string rather than using the strongly typed models class. Just use the model name identifier string that’s in the official OpenAI API docs. There’s an implicit cast of string to Model.

For example:

var chat = api.Chat.CreateConversation();
chat.Model = "gpt-4o";

OkGoDoIt avatar May 30 '24 20:05 OkGoDoIt

Does anyone know what the hold up is on getting this done?

Here's the Microsoft blog post Roger mentioned above: https://devblogs.microsoft.com/dotnet/openai-dotnet-library/

scottaddie avatar Jun 07 '24 18:06 scottaddie

As @scottaddie mentioned, it's official! Microsoft is launching an official library, which means full API coverage and up-to-date models going forward. More details in #211 and at the blog at https://devblogs.microsoft.com/dotnet/openai-dotnet-library/

OkGoDoIt avatar Jun 10 '24 20:06 OkGoDoIt