From 2135eee5b5997bbc116b69679312462898de65a1 Mon Sep 17 00:00:00 2001 From: Vladimir Shimansky Date: Fri, 30 Dec 2022 01:07:26 +0300 Subject: [PATCH 1/3] Remove extra properties from request --- .../ObjectModels/RequestModels/CompletionCreateRequest.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenAI.SDK/ObjectModels/RequestModels/CompletionCreateRequest.cs b/OpenAI.SDK/ObjectModels/RequestModels/CompletionCreateRequest.cs index 7fe09760..26479e84 100644 --- a/OpenAI.SDK/ObjectModels/RequestModels/CompletionCreateRequest.cs +++ b/OpenAI.SDK/ObjectModels/RequestModels/CompletionCreateRequest.cs @@ -104,12 +104,14 @@ public IList? PromptCalculated /// Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop /// sequence. /// + [JsonIgnore] public string? Stop { get; set; } /// /// Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop /// sequence. /// + [JsonIgnore] public IList? StopAsList { get; set; } [JsonPropertyName("stop")] From cb1939f4360858212789a8cb7d8e0384114320fa Mon Sep 17 00:00:00 2001 From: Tolga Kayhan Date: Sat, 31 Dec 2022 20:21:19 +0000 Subject: [PATCH 2/3] bug fix update for version 6.6.2 --- OpenAI.SDK/OpenAI.GPT3.csproj | 2 +- Readme.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenAI.SDK/OpenAI.GPT3.csproj b/OpenAI.SDK/OpenAI.GPT3.csproj index 369df09b..8eb66b4e 100644 --- a/OpenAI.SDK/OpenAI.GPT3.csproj +++ b/OpenAI.SDK/OpenAI.GPT3.csproj @@ -9,7 +9,7 @@ https://openai.com/ OpenAI-Betalgo.png true - 6.6.1 + 6.6.2 Tolga Kayhan, Betalgo Betalgo Up Ltd. OpenAI GPT-3 and DALLĀ·E dotnet SDK diff --git a/Readme.md b/Readme.md index c8ef504c..6211612a 100644 --- a/Readme.md +++ b/Readme.md @@ -109,6 +109,9 @@ As you can guess I do not accept any damage caused by use of the library. You ar ## Changelog +### 6.6.2 + * Bug-fix,added jsonignore for `stop` and `stopAsList`, thanks to @Patapum + ### 6.6.1 * **Breaking change**. * `EmbeddingCreateRequest.Input` was a ***string list*** type now it is a ***string*** type. From 875d6383c85035fa8e11c43d850370b532204a4f Mon Sep 17 00:00:00 2001 From: Tolga Kayhan Date: Sat, 31 Dec 2022 20:21:39 +0000 Subject: [PATCH 3/3] bug fix --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 6211612a..d0990e5d 100644 --- a/Readme.md +++ b/Readme.md @@ -111,7 +111,7 @@ As you can guess I do not accept any damage caused by use of the library. You ar ## Changelog ### 6.6.2 * Bug-fix,added jsonignore for `stop` and `stopAsList`, thanks to @Patapum - + ### 6.6.1 * **Breaking change**. * `EmbeddingCreateRequest.Input` was a ***string list*** type now it is a ***string*** type.