Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite866df5

Browse files
authored
Rename include parameter to includedProperties in the convenience methods (#839)
1 parent8a69e1d commite866df5

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

‎api/OpenAI.net8.0.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5657,15 +5657,15 @@ public class OpenAIResponseClient {
56575657
public virtual Task<ClientResult> DeleteResponseAsync(string responseId, RequestOptions options);
56585658
public virtual Task<ClientResult<ResponseDeletionResult>> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default);
56595659
public virtual ClientResult GetResponse(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
5660-
public virtual ClientResult<OpenAIResponse> GetResponse(string responseId, IEnumerable<IncludedResponseProperty>include = null, CancellationToken cancellationToken = default);
5660+
public virtual ClientResult<OpenAIResponse> GetResponse(string responseId, IEnumerable<IncludedResponseProperty>includedProperties = null, CancellationToken cancellationToken = default);
56615661
public virtual Task<ClientResult> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
5662-
public virtual Task<ClientResult<OpenAIResponse>> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty>include = null, CancellationToken cancellationToken = default);
5662+
public virtual Task<ClientResult<OpenAIResponse>> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty>includedProperties = null, CancellationToken cancellationToken = default);
56635663
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
56645664
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
56655665
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
56665666
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
5667-
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, IEnumerable<IncludedResponseProperty>include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
5668-
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, IEnumerable<IncludedResponseProperty>include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
5667+
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, IEnumerable<IncludedResponseProperty>includedProperties = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
5668+
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, IEnumerable<IncludedResponseProperty>includedProperties = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
56695669
}
56705670
[Experimental("OPENAI001")]
56715671
public static class OpenAIResponsesModelFactory {

‎api/OpenAI.netstandard2.0.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4969,15 +4969,15 @@ public class OpenAIResponseClient {
49694969
publicvirtualTask<ClientResult>DeleteResponseAsync(stringresponseId,RequestOptionsoptions);
49704970
publicvirtualTask<ClientResult<ResponseDeletionResult>>DeleteResponseAsync(stringresponseId,CancellationTokencancellationToken=default);
49714971
publicvirtualClientResultGetResponse(stringresponseId,IEnumerable<IncludedResponseProperty>include,bool?stream,int?startingAfter,bool?includeObfuscation,RequestOptionsoptions);
4972-
publicvirtualClientResult<OpenAIResponse>GetResponse(stringresponseId,IEnumerable<IncludedResponseProperty>include=null,CancellationTokencancellationToken=default);
4972+
publicvirtualClientResult<OpenAIResponse>GetResponse(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=null,CancellationTokencancellationToken=default);
49734973
publicvirtualTask<ClientResult>GetResponseAsync(stringresponseId,IEnumerable<IncludedResponseProperty>include,bool?stream,int?startingAfter,bool?includeObfuscation,RequestOptionsoptions);
4974-
publicvirtualTask<ClientResult<OpenAIResponse>>GetResponseAsync(stringresponseId,IEnumerable<IncludedResponseProperty>include=null,CancellationTokencancellationToken=default);
4974+
publicvirtualTask<ClientResult<OpenAIResponse>>GetResponseAsync(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=null,CancellationTokencancellationToken=default);
49754975
publicvirtualCollectionResult<ResponseItem>GetResponseInputItems(stringresponseId,ResponseItemCollectionOptionsoptions=null,CancellationTokencancellationToken=default);
49764976
publicvirtualCollectionResultGetResponseInputItems(stringresponseId,int?limit,stringorder,stringafter,stringbefore,RequestOptionsoptions);
49774977
publicvirtualAsyncCollectionResult<ResponseItem>GetResponseInputItemsAsync(stringresponseId,ResponseItemCollectionOptionsoptions=null,CancellationTokencancellationToken=default);
49784978
publicvirtualAsyncCollectionResultGetResponseInputItemsAsync(stringresponseId,int?limit,stringorder,stringafter,stringbefore,RequestOptionsoptions);
4979-
publicvirtualCollectionResult<StreamingResponseUpdate>GetResponseStreaming(stringresponseId,IEnumerable<IncludedResponseProperty>include=null,int?startingAfter=null,bool?includeObfuscation=null,CancellationTokencancellationToken=default);
4980-
publicvirtualAsyncCollectionResult<StreamingResponseUpdate>GetResponseStreamingAsync(stringresponseId,IEnumerable<IncludedResponseProperty>include=null,int?startingAfter=null,bool?includeObfuscation=null,CancellationTokencancellationToken=default);
4979+
publicvirtualCollectionResult<StreamingResponseUpdate>GetResponseStreaming(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=null,int?startingAfter=null,bool?includeObfuscation=null,CancellationTokencancellationToken=default);
4980+
publicvirtualAsyncCollectionResult<StreamingResponseUpdate>GetResponseStreamingAsync(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=null,int?startingAfter=null,bool?includeObfuscation=null,CancellationTokencancellationToken=default);
49814981
}
49824982
publicstaticclassOpenAIResponsesModelFactory{
49834983
publicstaticMessageResponseItemMessageResponseItem(stringid=null,MessageRolerole=MessageRole.Assistant,MessageStatus?status=null);

‎src/Custom/Responses/OpenAIResponseClient.cs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,16 +240,16 @@ internal async Task<ClientResult<OpenAIResponse>> GetResponseAsync(string respon
240240
returnClientResult.FromValue(convenienceResult,protocolResult.GetRawResponse());
241241
}
242242

243-
publicvirtualTask<ClientResult<OpenAIResponse>>GetResponseAsync(stringresponseId,IEnumerable<IncludedResponseProperty>include=default,CancellationTokencancellationToken=default)
243+
publicvirtualTask<ClientResult<OpenAIResponse>>GetResponseAsync(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=default,CancellationTokencancellationToken=default)
244244
{
245-
returnGetResponseAsync(responseId,include,cancellationToken.ToRequestOptions()??newRequestOptions());
245+
returnGetResponseAsync(responseId,includedProperties,cancellationToken.ToRequestOptions()??newRequestOptions());
246246
}
247247

248-
publicvirtualClientResult<OpenAIResponse>GetResponse(stringresponseId,IEnumerable<IncludedResponseProperty>include=default,CancellationTokencancellationToken=default)
248+
publicvirtualClientResult<OpenAIResponse>GetResponse(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=default,CancellationTokencancellationToken=default)
249249
{
250250
Argument.AssertNotNullOrEmpty(responseId,nameof(responseId));
251251

252-
ClientResultprotocolResult=GetResponse(responseId,include,stream:null,startingAfter:null,includeObfuscation:null,cancellationToken.ToRequestOptions());
252+
ClientResultprotocolResult=GetResponse(responseId,includedProperties,stream:null,startingAfter:null,includeObfuscation:null,cancellationToken.ToRequestOptions());
253253
OpenAIResponseconvenienceResult=(OpenAIResponse)protocolResult;
254254
returnClientResult.FromValue(convenienceResult,protocolResult.GetRawResponse());
255255
}
@@ -269,17 +269,17 @@ internal AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsyn
269269
requestOptions.CancellationToken);
270270
}
271271

272-
publicvirtualAsyncCollectionResult<StreamingResponseUpdate>GetResponseStreamingAsync(stringresponseId,IEnumerable<IncludedResponseProperty>include=default,int?startingAfter=default,bool?includeObfuscation=default,CancellationTokencancellationToken=default)
272+
publicvirtualAsyncCollectionResult<StreamingResponseUpdate>GetResponseStreamingAsync(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=default,int?startingAfter=default,bool?includeObfuscation=default,CancellationTokencancellationToken=default)
273273
{
274-
returnGetResponseStreamingAsync(responseId,include,startingAfter,includeObfuscation,cancellationToken.ToRequestOptions(streaming:true));
274+
returnGetResponseStreamingAsync(responseId,includedProperties,startingAfter,includeObfuscation,cancellationToken.ToRequestOptions(streaming:true));
275275
}
276276

277-
publicvirtualCollectionResult<StreamingResponseUpdate>GetResponseStreaming(stringresponseId,IEnumerable<IncludedResponseProperty>include=default,int?startingAfter=default,bool?includeObfuscation=default,CancellationTokencancellationToken=default)
277+
publicvirtualCollectionResult<StreamingResponseUpdate>GetResponseStreaming(stringresponseId,IEnumerable<IncludedResponseProperty>includedProperties=default,int?startingAfter=default,bool?includeObfuscation=default,CancellationTokencancellationToken=default)
278278
{
279279
Argument.AssertNotNull(responseId,nameof(responseId));
280280

281281
returnnewSseUpdateCollection<StreamingResponseUpdate>(
282-
()=>GetResponse(responseId,include,stream:true,startingAfter,includeObfuscation,cancellationToken.ToRequestOptions(streaming:true)),
282+
()=>GetResponse(responseId,includedProperties,stream:true,startingAfter,includeObfuscation,cancellationToken.ToRequestOptions(streaming:true)),
283283
StreamingResponseUpdate.DeserializeStreamingResponseUpdate,
284284
cancellationToken);
285285
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp