Skip to content

Commit 512d13b

Browse files
committed
fix: Fixed issues with new parameters with default values.
1 parent 837b253 commit 512d13b

File tree

88 files changed

+213
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+213
-213
lines changed

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.CreateAssistant.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ partial void ProcessCreateAssistantResponseContent(
166166
global::System.Collections.Generic.IList<global::OpenAI.ToolsItem2>? tools = default,
167167
global::OpenAI.CreateAssistantRequestToolResources? toolResources = default,
168168
object? metadata = default,
169-
double? temperature = 1,
170-
double? topP = 1,
169+
double? temperature = default,
170+
double? topP = default,
171171
global::OpenAI.AssistantsApiResponseFormatOption? responseFormat = default,
172172
global::System.Threading.CancellationToken cancellationToken = default)
173173
{

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.CreateRun.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ partial void ProcessCreateRunResponseContent(
204204
global::System.Collections.Generic.IList<global::OpenAI.CreateMessageRequest>? additionalMessages = default,
205205
global::System.Collections.Generic.IList<global::OpenAI.ToolsItem4>? tools = default,
206206
object? metadata = default,
207-
double? temperature = 1,
208-
double? topP = 1,
207+
double? temperature = default,
208+
double? topP = default,
209209
bool? stream = default,
210210
int? maxPromptTokens = default,
211211
int? maxCompletionTokens = default,

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.CreateThreadAndRun.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ partial void ProcessCreateThreadAndRunResponseContent(
186186
global::System.Collections.Generic.IList<global::OpenAI.ToolsItem5>? tools = default,
187187
global::OpenAI.CreateThreadAndRunRequestToolResources? toolResources = default,
188188
object? metadata = default,
189-
double? temperature = 1,
190-
double? topP = 1,
189+
double? temperature = default,
190+
double? topP = default,
191191
bool? stream = default,
192192
int? maxPromptTokens = default,
193193
int? maxCompletionTokens = default,

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.ListAssistants.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ partial void ProcessListAssistantsResponseContent(
4141
/// <param name="cancellationToken">The token to cancel the operation with</param>
4242
/// <exception cref="global::System.InvalidOperationException"></exception>
4343
public async global::System.Threading.Tasks.Task<global::OpenAI.ListAssistantsResponse> ListAssistantsAsync(
44-
int? limit = 20,
45-
global::OpenAI.ListAssistantsOrder? order = global::OpenAI.ListAssistantsOrder.Desc,
44+
int? limit = default,
45+
global::OpenAI.ListAssistantsOrder? order = default,
4646
string? after = default,
4747
string? before = default,
4848
global::System.Threading.CancellationToken cancellationToken = default)

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.ListMessages.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ partial void ProcessListMessagesResponseContent(
4848
/// <exception cref="global::System.InvalidOperationException"></exception>
4949
public async global::System.Threading.Tasks.Task<global::OpenAI.ListMessagesResponse> ListMessagesAsync(
5050
string threadId,
51-
int? limit = 20,
52-
global::OpenAI.ListMessagesOrder? order = global::OpenAI.ListMessagesOrder.Desc,
51+
int? limit = default,
52+
global::OpenAI.ListMessagesOrder? order = default,
5353
string? after = default,
5454
string? before = default,
5555
string? runId = default,

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.ListRunSteps.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ partial void ProcessListRunStepsResponseContent(
5252
public async global::System.Threading.Tasks.Task<global::OpenAI.ListRunStepsResponse> ListRunStepsAsync(
5353
string threadId,
5454
string runId,
55-
int? limit = 20,
56-
global::OpenAI.ListRunStepsOrder? order = global::OpenAI.ListRunStepsOrder.Desc,
55+
int? limit = default,
56+
global::OpenAI.ListRunStepsOrder? order = default,
5757
string? after = default,
5858
string? before = default,
5959
global::System.Collections.Generic.IList<global::OpenAI.ListRunStepsIncludeItem>? include = default,

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.ListRuns.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ partial void ProcessListRunsResponseContent(
4545
/// <exception cref="global::System.InvalidOperationException"></exception>
4646
public async global::System.Threading.Tasks.Task<global::OpenAI.ListRunsResponse> ListRunsAsync(
4747
string threadId,
48-
int? limit = 20,
49-
global::OpenAI.ListRunsOrder? order = global::OpenAI.ListRunsOrder.Desc,
48+
int? limit = default,
49+
global::OpenAI.ListRunsOrder? order = default,
5050
string? after = default,
5151
string? before = default,
5252
global::System.Threading.CancellationToken cancellationToken = default)

src/libs/OpenAI/Generated/OpenAI.AssistantsClient.ModifyAssistant.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ partial void ProcessModifyAssistantResponseContent(
173173
global::System.Collections.Generic.IList<global::OpenAI.ToolsItem7>? tools = default,
174174
global::OpenAI.ModifyAssistantRequestToolResources? toolResources = default,
175175
object? metadata = default,
176-
double? temperature = 1,
177-
double? topP = 1,
176+
double? temperature = default,
177+
double? topP = default,
178178
global::OpenAI.AssistantsApiResponseFormatOption? responseFormat = default,
179179
global::System.Threading.CancellationToken cancellationToken = default)
180180
{

src/libs/OpenAI/Generated/OpenAI.AudioClient.CreateSpeech.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ partial void ProcessCreateSpeechResponseContent(
128128
global::OpenAI.AnyOf<string, global::OpenAI.CreateSpeechRequestModel?> model,
129129
string input,
130130
global::OpenAI.CreateSpeechRequestVoice voice,
131-
global::OpenAI.CreateSpeechRequestResponseFormat? responseFormat = global::OpenAI.CreateSpeechRequestResponseFormat.Mp3,
132-
double? speed = 1,
131+
global::OpenAI.CreateSpeechRequestResponseFormat? responseFormat = default,
132+
double? speed = default,
133133
global::System.Threading.CancellationToken cancellationToken = default)
134134
{
135135
var __request = new global::OpenAI.CreateSpeechRequest

src/libs/OpenAI/Generated/OpenAI.AudioClient.CreateTranscription.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ partial void ProcessCreateTranscriptionResponseContent(
8888
content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
8989
name: "prompt");
9090
}
91-
if (request.ResponseFormat != global::OpenAI.AudioResponseFormat.Json)
91+
if (request.ResponseFormat != default)
9292
{
9393
__httpRequestContent.Add(
9494
content: new global::System.Net.Http.StringContent($"{request.ResponseFormat?.ToValueString()}"),
9595
name: "response_format");
9696
}
97-
if (request.Temperature != 0)
97+
if (request.Temperature != default)
9898
{
9999
__httpRequestContent.Add(
100100
content: new global::System.Net.Http.StringContent($"{request.Temperature}"),
@@ -192,8 +192,8 @@ partial void ProcessCreateTranscriptionResponseContent(
192192
global::OpenAI.AnyOf<string, global::OpenAI.CreateTranscriptionRequestModel?> model,
193193
string? language = default,
194194
string? prompt = default,
195-
global::OpenAI.AudioResponseFormat? responseFormat = global::OpenAI.AudioResponseFormat.Json,
196-
double? temperature = 0,
195+
global::OpenAI.AudioResponseFormat? responseFormat = default,
196+
double? temperature = default,
197197
global::System.Collections.Generic.IList<global::OpenAI.CreateTranscriptionRequestTimestampGranularitie>? timestampGranularities = default,
198198
global::System.Threading.CancellationToken cancellationToken = default)
199199
{

0 commit comments

Comments
 (0)