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

Added latest GPT4 Omni and replaced preview GPT4 models with gpt-4-turbo

Open glienard opened this issue 1 year ago • 6 comments

glienard avatar May 15 '24 07:05 glienard

Please get this into nuget soon :)

It would be better if you could provide a string override so people didn't have to wait for you to make a change when a new model was introduced.

spppaul avatar May 18 '24 18:05 spppaul

is it possible to add support for vectorStore?

GuyEzro avatar May 19 '24 13:05 GuyEzro

Great, please merge this asap!

shotyme avatar May 19 '24 13:05 shotyme

really urgently required , thanks for making this PR

ghostrider0470 avatar May 22 '24 12:05 ghostrider0470

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";

Unfortunately I’m not able to make any updates for the next couple weeks, and I can’t publicly announce what’s up for another week or two. But I promise you it’ll be worth the wait. Keep an eye on the official Microsoft blogs perhaps 😉

OkGoDoIt avatar May 30 '24 20:05 OkGoDoIt

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. There’s an implicit cast of string to Model

Unfortunately I’m not able to make any updates for the next couple weeks, and I can’t publicly announce what’s up for another week or two. But I promise you it’ll be worth the wait. Keep an eye on the official Microsoft blogs perhaps 😉

This worked for me:

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

...... var response = await openAi.Chat.CreateChatCompletionAsync( new ChatRequest { Model = GPT4_Omni, ......

spppaul avatar May 30 '24 20:05 spppaul