Skip to content

Commit 8fc60b2

Browse files
committed
fb
1 parent b3a89bc commit 8fc60b2

10 files changed

+57
-208
lines changed

api/OpenAI.net8.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6144,10 +6144,10 @@ public class ResponsesClient {
61446144
public virtual Task<ClientResult> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
61456145
public virtual ClientResult<ResponseItemCollection> GetResponseInputItems(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
61466146
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
6147-
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
6147+
public virtual ClientResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
61486148
public virtual Task<ClientResult<ResponseItemCollection>> GetResponseInputItemsAsync(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
61496149
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
6150-
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
6150+
public virtual Task<ClientResult> GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
61516151
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);
61526152
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, IEnumerable<IncludedResponseProperty> include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
61536153
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);

api/OpenAI.netstandard2.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5412,10 +5412,10 @@ public class ResponsesClient {
54125412
public virtual Task<ClientResult> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
54135413
public virtual ClientResult<ResponseItemCollection> GetResponseInputItems(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
54145414
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
5415-
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
5415+
public virtual ClientResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
54165416
public virtual Task<ClientResult<ResponseItemCollection>> GetResponseInputItemsAsync(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
54175417
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
5418-
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
5418+
public virtual Task<ClientResult> GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
54195419
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);
54205420
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, IEnumerable<IncludedResponseProperty> include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
54215421
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);

src/Custom/Responses/ResponsesClient.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ namespace OpenAI.Responses;
2121
[CodeGenSuppress("CancelResponseAsync", typeof(string), typeof(IEnumerable<IncludedResponseProperty>), typeof(bool?), typeof(int?), typeof(CancellationToken))]
2222
[CodeGenSuppress("GetResponse", typeof(string), typeof(IEnumerable<IncludedResponseProperty>), typeof(bool?), typeof(int?), typeof(bool?), typeof(CancellationToken))]
2323
[CodeGenSuppress("GetResponseAsync", typeof(string), typeof(IEnumerable<IncludedResponseProperty>), typeof(bool?), typeof(int?), typeof(bool?), typeof(CancellationToken))]
24+
[CodeGenSuppress("GetResponseInputItems", typeof(string), typeof(int?), typeof(string), typeof(string), typeof(string), typeof(RequestOptions))]
25+
[CodeGenSuppress("GetResponseInputItemsAsync", typeof(string), typeof(int?), typeof(string), typeof(string), typeof(string), typeof(RequestOptions))]
26+
2427
public partial class ResponsesClient
2528
{
2629
// CUSTOM: Added as a convenience.
@@ -391,6 +394,22 @@ public virtual ClientResult<ResponseResult> CancelResponse(string responseId, Ca
391394
return ClientResult.FromValue(convenienceResult, protocolResult.GetRawResponse());
392395
}
393396

397+
public virtual ClientResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options)
398+
{
399+
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
400+
401+
PipelineMessage message = CreateGetResponseInputItemsRequest(responseId, limit, after, order, before, options);
402+
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
403+
}
404+
405+
public virtual async Task<ClientResult> GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options)
406+
{
407+
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
408+
409+
PipelineMessage message = CreateGetResponseInputItemsRequest(responseId, limit, after, order, before, options);
410+
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
411+
}
412+
394413
public virtual ClientResult<ResponseItemCollection> GetResponseInputItems(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default)
395414
{
396415
Argument.AssertNotNull(options, nameof(options));

src/Generated/CollectionResults/ResponsesClientGetResponseInputItemsAsyncCollectionResult.cs

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/Generated/CollectionResults/ResponsesClientGetResponseInputItemsCollectionResult.cs

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/Generated/Models/Assistants/MessageCreationOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace OpenAI.Assistants
1111
{
12-
[Experimental("OPENAI001")]
12+
[Experimental("OPENAI001")]
1313
public partial class MessageCreationOptions
1414
{
1515
private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

src/Generated/Models/Responses/CreateResponseOptions.Serialization.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
8080
writer.WritePropertyName("top_p"u8);
8181
writer.WriteNumberValue(TopP.Value);
8282
}
83-
if (Optional.IsDefined(User) && !Patch.Contains("$.user"u8))
83+
if (Optional.IsDefined(EndUserId) && !Patch.Contains("$.user"u8))
8484
{
8585
writer.WritePropertyName("user"u8);
86-
writer.WriteStringValue(User);
86+
writer.WriteStringValue(EndUserId);
8787
}
8888
if (Optional.IsDefined(ServiceTier) && !Patch.Contains("$.service_tier"u8))
8989
{
@@ -246,12 +246,12 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
246246
IDictionary<string, string> metadata = default;
247247
float? temperature = default;
248248
float? topP = default;
249-
string user = default;
249+
string endUserId = default;
250250
ResponseServiceTier? serviceTier = default;
251251
string previousResponseId = default;
252252
string model = default;
253253
ResponseReasoningOptions reasoningOptions = default;
254-
bool? isBackgroundModeEnabled = default;
254+
bool? backgroundModeEnabled = default;
255255
int? maxOutputTokenCount = default;
256256
string instructions = default;
257257
ResponseTextOptions textOptions = default;
@@ -260,9 +260,9 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
260260
ResponseTruncationMode? truncationMode = default;
261261
IList<ResponseItem> inputItems = default;
262262
IList<IncludedResponseProperty> includedProperties = default;
263-
bool? isParallelToolCallsEnabled = default;
264-
bool? isStoredOutputEnabled = default;
265-
bool? isStreamingEnabled = default;
263+
bool? parallelToolCallsEnabled = default;
264+
bool? storedOutputEnabled = default;
265+
bool? streamingEnabled = default;
266266
#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
267267
JsonPatch patch = new JsonPatch(data is null ? ReadOnlyMemory<byte>.Empty : data.ToMemory());
268268
#pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
@@ -311,7 +311,7 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
311311
}
312312
if (prop.NameEquals("user"u8))
313313
{
314-
user = prop.Value.GetString();
314+
endUserId = prop.Value.GetString();
315315
continue;
316316
}
317317
if (prop.NameEquals("service_tier"u8))
@@ -352,10 +352,10 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
352352
{
353353
if (prop.Value.ValueKind == JsonValueKind.Null)
354354
{
355-
isBackgroundModeEnabled = null;
355+
backgroundModeEnabled = null;
356356
continue;
357357
}
358-
isBackgroundModeEnabled = prop.Value.GetBoolean();
358+
backgroundModeEnabled = prop.Value.GetBoolean();
359359
continue;
360360
}
361361
if (prop.NameEquals("max_output_tokens"u8))
@@ -448,30 +448,30 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
448448
{
449449
if (prop.Value.ValueKind == JsonValueKind.Null)
450450
{
451-
isParallelToolCallsEnabled = null;
451+
parallelToolCallsEnabled = null;
452452
continue;
453453
}
454-
isParallelToolCallsEnabled = prop.Value.GetBoolean();
454+
parallelToolCallsEnabled = prop.Value.GetBoolean();
455455
continue;
456456
}
457457
if (prop.NameEquals("store"u8))
458458
{
459459
if (prop.Value.ValueKind == JsonValueKind.Null)
460460
{
461-
isStoredOutputEnabled = null;
461+
storedOutputEnabled = null;
462462
continue;
463463
}
464-
isStoredOutputEnabled = prop.Value.GetBoolean();
464+
storedOutputEnabled = prop.Value.GetBoolean();
465465
continue;
466466
}
467467
if (prop.NameEquals("stream"u8))
468468
{
469469
if (prop.Value.ValueKind == JsonValueKind.Null)
470470
{
471-
isStreamingEnabled = null;
471+
streamingEnabled = null;
472472
continue;
473473
}
474-
isStreamingEnabled = prop.Value.GetBoolean();
474+
streamingEnabled = prop.Value.GetBoolean();
475475
continue;
476476
}
477477
patch.Set([.. "$."u8, .. Encoding.UTF8.GetBytes(prop.Name)], prop.Value.GetUtf8Bytes());
@@ -480,12 +480,12 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
480480
metadata ?? new ChangeTrackingDictionary<string, string>(),
481481
temperature,
482482
topP,
483-
user,
483+
endUserId,
484484
serviceTier,
485485
previousResponseId,
486486
model,
487487
reasoningOptions,
488-
isBackgroundModeEnabled,
488+
backgroundModeEnabled,
489489
maxOutputTokenCount,
490490
instructions,
491491
textOptions,
@@ -494,9 +494,9 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
494494
truncationMode,
495495
inputItems,
496496
includedProperties ?? new ChangeTrackingList<IncludedResponseProperty>(),
497-
isParallelToolCallsEnabled,
498-
isStoredOutputEnabled,
499-
isStreamingEnabled,
497+
parallelToolCallsEnabled,
498+
storedOutputEnabled,
499+
streamingEnabled,
500500
patch);
501501
}
502502

0 commit comments

Comments
 (0)