From 449e3595f258e8767a9df6cf5bccd5f3ff4dc1a6 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Wed, 14 Jun 2023 10:21:18 +0200 Subject: [PATCH 1/2] Libraries update --- samples/ChatGptApi/ChatGptApi.csproj | 4 ++-- samples/ChatGptBlazor.Wasm/ChatGptBlazor.Wasm.csproj | 4 ++-- src/ChatGptNet/ChatGptNet.csproj | 4 ++-- src/Directory.Build.props | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/ChatGptApi/ChatGptApi.csproj b/samples/ChatGptApi/ChatGptApi.csproj index 2a36272..874c9c5 100644 --- a/samples/ChatGptApi/ChatGptApi.csproj +++ b/samples/ChatGptApi/ChatGptApi.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/ChatGptBlazor.Wasm/ChatGptBlazor.Wasm.csproj b/samples/ChatGptBlazor.Wasm/ChatGptBlazor.Wasm.csproj index 7996a95..b831aa9 100644 --- a/samples/ChatGptBlazor.Wasm/ChatGptBlazor.Wasm.csproj +++ b/samples/ChatGptBlazor.Wasm/ChatGptBlazor.Wasm.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/src/ChatGptNet/ChatGptNet.csproj b/src/ChatGptNet/ChatGptNet.csproj index a320a25..a0911ec 100644 --- a/src/ChatGptNet/ChatGptNet.csproj +++ b/src/ChatGptNet/ChatGptNet.csproj @@ -30,7 +30,7 @@ - + @@ -39,7 +39,7 @@ - + diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b76a880..8faca32 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -9,7 +9,7 @@ - + From cab6f9d37c6fc5deab3d94041de6cd686bf79d35 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Wed, 14 Jun 2023 10:40:10 +0200 Subject: [PATCH 2/2] Libraries update --- README.md | 2 +- src/ChatGptNet/Models/OpenAIChatGptModels.cs | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 486a329..d1995d6 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ ChatGPT can be used with different models for chat completion, both on OpenAI an ##### OpenAI -Currently available models are: _gpt-3.5-turbo_, _gpt-4_ and _gpt-4-32k_. They have fixed names, available in the [OpenAIChatGptModels.cs file](https://github.com/marcominerva/ChatGptNet/blob/master/src/ChatGptNet/Models/ChatGptModels.cs). +Currently available models are: _gpt-3.5-turbo_, _gpt-3.5-turbo-16k_, _gpt-4_ and _gpt-4-32k_. They have fixed names, available in the [OpenAIChatGptModels.cs file](https://github.com/marcominerva/ChatGptNet/blob/master/src/ChatGptNet/Models/ChatGptModels.cs). > **Note** The _gpt-4_ and _gpt-4-32k_ models are currently in a limited beta and only accessible to those who have been granted access. You can find more information in the [models documentation page](https://platform.openai.com/docs/models/gpt-4) of the [OpenAI site](https://openai.com/). diff --git a/src/ChatGptNet/Models/OpenAIChatGptModels.cs b/src/ChatGptNet/Models/OpenAIChatGptModels.cs index bd02d92..926d6e5 100644 --- a/src/ChatGptNet/Models/OpenAIChatGptModels.cs +++ b/src/ChatGptNet/Models/OpenAIChatGptModels.cs @@ -17,8 +17,18 @@ public static class OpenAIChatGptModels /// /// See GPT-3.5 for more information. /// + /// public const string Gpt35Turbo = "gpt-3.5-turbo"; + /// + /// A model with the same capabilities as the standard model but with 4 times the context. + /// + /// + /// See GPT-3.5 for more information. + /// + /// + public const string Gpt35Turbo_16k = "gpt-3.5-turbo-16k"; + /// /// GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy than any of our previous models, thanks to its broader general knowledge and advanced reasoning capabilities. is optimized for chat but works well for traditional completions tasks. /// @@ -29,7 +39,7 @@ public static class OpenAIChatGptModels public const string Gpt4 = "gpt-4"; /// - /// A model with the same capabilities as the base model, but with 4x the context length. + /// A model with the same capabilities as the base model but with 4x the context length. /// /// /// This model is currently in a limited beta and only accessible to those who have been granted access. See GPT-4 for more information.