Skip to content

Commit 036535a

Browse files
committed
fb
1 parent 4a23a08 commit 036535a

28 files changed

+390
-281
lines changed

src/Custom/Responses/CreateResponseOptions.Serialization.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
246246
string user = default;
247247
ResponseServiceTier? serviceTier = default;
248248
string previousResponseId = default;
249-
InternalModelIdsResponses? model = default;
249+
ModelIdsResponses? model = default;
250250
ResponseReasoningOptions reasoning = default;
251251
bool? background = default;
252252
int? maxOutputTokens = default;
@@ -336,7 +336,7 @@ internal static CreateResponseOptions DeserializeCreateResponseOptions(JsonEleme
336336
{
337337
continue;
338338
}
339-
model = new InternalModelIdsResponses(prop.Value.GetString());
339+
model = new ModelIdsResponses(prop.Value.GetString());
340340
continue;
341341
}
342342
if (prop.NameEquals("reasoning"u8))

src/Custom/Responses/CreateResponseOptions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.ClientModel.Primitives;
32
using System.Collections.Generic;
43
using System.ComponentModel;
@@ -24,7 +23,7 @@ public CreateResponseOptions(List<ResponseItem> input)
2423
}
2524

2625
#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
27-
internal CreateResponseOptions(IDictionary<string, string> metadata, float? temperature, float? topP, string user, ResponseServiceTier? serviceTier, string previousResponseId, InternalModelIdsResponses? model, ResponseReasoningOptions reasoning, bool? background, int? maxOutputTokens, string instructions, ResponseTextOptions text, IList<ResponseTool> tools, ResponseToolChoice toolChoice, ResponseTruncationMode? truncation, IList<ResponseItem> input, IList<Includable> include, bool? parallelToolCalls, bool? store, bool? stream, in JsonPatch patch)
26+
internal CreateResponseOptions(IDictionary<string, string> metadata, float? temperature, float? topP, string user, ResponseServiceTier? serviceTier, string previousResponseId, ModelIdsResponses? model, ResponseReasoningOptions reasoning, bool? background, int? maxOutputTokens, string instructions, ResponseTextOptions text, IList<ResponseTool> tools, ResponseToolChoice toolChoice, ResponseTruncationMode? truncation, IList<ResponseItem> input, IList<Includable> include, bool? parallelToolCalls, bool? store, bool? stream, in JsonPatch patch)
2827
{
2928
// Plugin customization: ensure initialization of collections
3029
Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
@@ -68,7 +67,7 @@ internal CreateResponseOptions(IDictionary<string, string> metadata, float? temp
6867

6968
public string PreviousResponseId { get; set; }
7069

71-
internal InternalModelIdsResponses? Model { get; set; }
70+
public ModelIdsResponses? Model { get; set; }
7271

7372
public ResponseReasoningOptions Reasoning { get; set; }
7473

src/Custom/Responses/ResponseCreationOptions.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ internal partial class ResponseCreationOptions
7171
[CodeGenMember("Tools")]
7272
public IList<ResponseTool> Tools { get; }
7373

74-
internal ResponseCreationOptions GetClone()
75-
{
76-
ResponseCreationOptions copiedOptions = (ResponseCreationOptions)this.MemberwiseClone();
77-
copiedOptions.Patch = _patch;
78-
79-
return copiedOptions;
80-
}
74+
internal ResponseCreationOptions GetClone()
75+
{
76+
ResponseCreationOptions copiedOptions = (ResponseCreationOptions)this.MemberwiseClone();
77+
#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
78+
copiedOptions.Patch = _patch;
79+
#pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
80+
return copiedOptions;
81+
}
8182

8283
internal BinaryContent ToBinaryContent() => BinaryContent.Create(this, ModelSerializationExtensions.WireOptions);
8384
}

src/Custom/Responses/ResponseResult.Serialization.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ internal static ResponseResult DeserializeResponseResult(JsonElement element, Bi
276276
string user = default;
277277
ResponseServiceTier? serviceTier = default;
278278
string previousResponseId = default;
279-
InternalModelIdsResponses? model = default;
279+
ModelIdsResponses? model = default;
280280
ResponseReasoningOptions reasoning = default;
281281
bool? background = default;
282282
int? maxOutputTokens = default;
@@ -377,7 +377,7 @@ internal static ResponseResult DeserializeResponseResult(JsonElement element, Bi
377377
{
378378
continue;
379379
}
380-
model = new InternalModelIdsResponses(prop.Value.GetString());
380+
model = new ModelIdsResponses(prop.Value.GetString());
381381
continue;
382382
}
383383
if (prop.NameEquals("reasoning"u8))

src/Custom/Responses/ResponseResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal ResponseResult(IDictionary<string, string> metadata, float? temperature
3030
}
3131

3232
#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
33-
internal ResponseResult(IDictionary<string, string> metadata, float? temperature, float? topP, string user, ResponseServiceTier? serviceTier, string previousResponseId, InternalModelIdsResponses? model, ResponseReasoningOptions reasoning, bool? background, int? maxOutputTokens, string instructions, ResponseTextOptions text, IList<ResponseTool> tools, ResponseToolChoice toolChoice, ResponseTruncationMode? truncation, string id, string @object, ResponseStatus? status, DateTimeOffset createdAt, ResponseError error, ResponseIncompleteStatusDetails incompleteDetails, IList<ResponseItem> output, string outputText, ResponseTokenUsage usage, bool parallelToolCalls, in JsonPatch patch)
33+
internal ResponseResult(IDictionary<string, string> metadata, float? temperature, float? topP, string user, ResponseServiceTier? serviceTier, string previousResponseId, ModelIdsResponses? model, ResponseReasoningOptions reasoning, bool? background, int? maxOutputTokens, string instructions, ResponseTextOptions text, IList<ResponseTool> tools, ResponseToolChoice toolChoice, ResponseTruncationMode? truncation, string id, string @object, ResponseStatus? status, DateTimeOffset createdAt, ResponseError error, ResponseIncompleteStatusDetails incompleteDetails, IList<ResponseItem> output, string outputText, ResponseTokenUsage usage, bool parallelToolCalls, in JsonPatch patch)
3434
{
3535
// Plugin customization: ensure initialization of collections
3636
Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
@@ -79,7 +79,7 @@ internal ResponseResult(IDictionary<string, string> metadata, float? temperature
7979

8080
public string PreviousResponseId { get; }
8181

82-
internal InternalModelIdsResponses? InternalModel { get; }
82+
public ModelIdsResponses? InternalModel { get; }
8383

8484
public string Model => InternalModel?.ToString();
8585

src/Custom/Responses/StreamingResponseCompletedUpdate.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace OpenAI.Responses
55
{
6-
[Experimental("OPENAI001")]
76
public partial class StreamingResponseCompletedUpdate : StreamingResponseUpdate
87
{
98
internal StreamingResponseCompletedUpdate(int sequenceNumber, ResponseResult response) : base(InternalResponseStreamEventType.ResponseCompleted, sequenceNumber)

src/Custom/Responses/StreamingResponseCreatedUpdate.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace OpenAI.Responses
99
{
10-
[Experimental("OPENAI001")]
1110
public partial class StreamingResponseCreatedUpdate : StreamingResponseUpdate
1211
{
1312
internal StreamingResponseCreatedUpdate(int sequenceNumber, ResponseResult response) : base(InternalResponseStreamEventType.ResponseCreated, sequenceNumber)

src/Custom/Responses/StreamingResponseFailedUpdate.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace OpenAI.Responses
55
{
6-
[Experimental("OPENAI001")]
76
public partial class StreamingResponseFailedUpdate : StreamingResponseUpdate
87
{
98
internal StreamingResponseFailedUpdate(int sequenceNumber, ResponseResult response) : base(InternalResponseStreamEventType.ResponseFailed, sequenceNumber)

src/Custom/Responses/StreamingResponseInProgressUpdate.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace OpenAI.Responses
55
{
6-
[Experimental("OPENAI001")]
76
public partial class StreamingResponseInProgressUpdate : StreamingResponseUpdate
87
{
98
internal StreamingResponseInProgressUpdate(int sequenceNumber, ResponseResult response) : base(InternalResponseStreamEventType.ResponseInProgress, sequenceNumber)

src/Custom/Responses/StreamingResponseIncompleteUpdate.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace OpenAI.Responses
55
{
6-
[Experimental("OPENAI001")]
76
public partial class StreamingResponseIncompleteUpdate : StreamingResponseUpdate
87
{
98
internal StreamingResponseIncompleteUpdate(int sequenceNumber, ResponseResult response) : base(InternalResponseStreamEventType.ResponseIncomplete, sequenceNumber)

0 commit comments

Comments
 (0)