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

Big announcement: official support from Microsoft!

Open OkGoDoIt opened this issue 1 year ago • 12 comments

It's official! Microsoft reached out to me a month ago about transitioning this library into a new official C# OpenAI library and that's what we've been working on. Starting with v2.0.0-beta.1, the library now has full coverage and will stay fully up-to-date. More details in the blog post here: https://devblogs.microsoft.com/dotnet/openai-dotnet-library/ 🎉

There's a migration guide available at https://github.com/openai/openai-dotnet/blob/main/MigrationGuide.md as well, as the new version is a bit different.

OkGoDoIt avatar May 10 '24 22:05 OkGoDoIt

Sounds like you have something exciting lined up.

MarkHelsinki avatar May 14 '24 05:05 MarkHelsinki

Are you planning to update support for the new GPT-4o model with the new version?

jakubbloksa avatar May 14 '24 09:05 jakubbloksa

Are you planning to update support for the new GPT-4o model with the new version?

Good question: I tried manually updating the list of Models today by adding:

	```/// <summary>
	///	The latest GPT-4 Omni model with multimodal (accepting text or image inputs and outputting text), and same high intelligence as GPT-4 Turbo but more efficient—generates text 2x faster and is 50% cheaper. Additionally, GPT-4o has the best vision and performance across non-English languages of any of our models. 
	/// </summary>
	public static Model GPT4_Omni => new Model("gpt-4o-2024-05-13") { OwnedBy = "openai" };```

...but I'm not sure if it's because the files are added and maintained via NuGet, but the Model class is behaving as if it was readOnly.

MarkHelsinki avatar May 14 '24 09:05 MarkHelsinki

I was thinking things were abandoned and gearing up to have to convert my integrations. Thank you for speaking up. Will delay in this project. Excited to hear the news!

Tronald avatar May 15 '24 19:05 Tronald

To answer @jakubbloksa and @MarkHelsinki , 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 31 '24 20:05 OkGoDoIt

Sounds exciting. You must be pumped 🙂 Thanks for the tip, I'll give that a go. The new model is cheaper and improved language handling. So perfect for my use case.

MarkHelsinki avatar May 31 '24 21:05 MarkHelsinki

Here is hoping that is not a force towards us to be using Microsoft's Azure OpenAI services (and costs !)

JulesVerny avatar Jun 04 '24 15:06 JulesVerny

Let's go Roger! Congrats...

https://devblogs.microsoft.com/dotnet/openai-dotnet-library/

Tronald avatar Jun 10 '24 19:06 Tronald

It's official! Microsoft reached out to me a month ago about transitioning this library into a new official C# OpenAI library and that's what we've been working on. Starting with v2.0.0-beta.1, the library now has full coverage and will stay fully up-to-date. More details in the blog post here: https://devblogs.microsoft.com/dotnet/openai-dotnet-library/ 🎉

OkGoDoIt avatar Jun 10 '24 20:06 OkGoDoIt

There was mention of a tutorial for transitioning from your gitHub version to the .NET official version. Is that coming online soon? I can see there are a few differences in variable names at least.

MarkHelsinki avatar Jun 10 '24 20:06 MarkHelsinki

@MarkHelsinki https://github.com/openai/openai-dotnet/blob/main/MigrationGuide.md

Tronald avatar Jun 10 '24 21:06 Tronald

He's a webcast we recorded where we go into more details and answer some community questions: https://www.youtube.com/live/GUV2p_9QUo8?si=R2an9f3x1kO9zzzL

OkGoDoIt avatar Jun 21 '24 18:06 OkGoDoIt