betalgo / openai

OpenAI .NET sdk - Azure OpenAI, ChatGPT, Whisper, and DALL-E
https://betalgo.github.io/openai/
MIT License
2.88k stars 520 forks source link

GPT4 chat completion #330

Closed julesx closed 1 year ago

julesx commented 1 year ago

The main github page has a Chat GPT-4 link to https://github.com/betalgo/openai/wiki/Chat-GPT which uses Model = Models.ChatGpt3_5Turbo

The Model property has the following comment

    /// <summary>
    ///     ID of the model to use. Currently, only gpt-3.5-turbo and gpt-3.5-turbo-0301 are supported.
    /// </summary>
    [JsonPropertyName("model")]
    public string? Model { get; set; }

Can this be updated to more clearly demonstrate that this library does indeed support GPT-4?

WeihanLi commented 1 year ago

You can use Models.Gpt_4 for using the gpt-4

https://github.com/betalgo/openai/blob/9080eb4daceba3dffc8a215eaba283f277e4fb7f/OpenAI.SDK/ObjectModels/Models.cs#L112

kayhantolga commented 1 year ago

solved in https://github.com/betalgo/openai/pull/332