Skip to content

Commit b8281f3

Browse files
committed
export
1 parent dccbab9 commit b8281f3

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

api/OpenAI.net8.0.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,13 +1483,11 @@ public class ChatClient {
14831483
public virtual string Model { get; }
14841484
public ClientPipeline Pipeline { get; }
14851485
public virtual ClientResult<ChatCompletion> CompleteChat(params ChatMessage[] messages);
1486-
public virtual ClientResult CompleteChat(CreateChatCompletionOptions options, RequestOptions requestOptions = null);
14871486
[Experimental("OPENAI001")]
14881487
public virtual ClientResult<ChatCompletionResult> CompleteChat(CreateChatCompletionOptions options, CancellationToken cancellationToken = default);
14891488
public virtual ClientResult CompleteChat(BinaryContent content, RequestOptions options = null);
14901489
public virtual ClientResult<ChatCompletion> CompleteChat(IEnumerable<ChatMessage> messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default);
14911490
public virtual Task<ClientResult<ChatCompletion>> CompleteChatAsync(params ChatMessage[] messages);
1492-
public virtual Task<ClientResult> CompleteChatAsync(CreateChatCompletionOptions options, RequestOptions requestOptions = null);
14931491
[Experimental("OPENAI001")]
14941492
public virtual Task<ClientResult<ChatCompletionResult>> CompleteChatAsync(CreateChatCompletionOptions options, CancellationToken cancellationToken = default);
14951493
public virtual Task<ClientResult> CompleteChatAsync(BinaryContent content, RequestOptions options = null);
@@ -1509,14 +1507,12 @@ public class ChatClient {
15091507
[Experimental("OPENAI001")]
15101508
public virtual Task<ClientResult<ChatCompletionDeletionResult>> DeleteChatCompletionAsync(string completionId, CancellationToken cancellationToken = default);
15111509
[Experimental("OPENAI001")]
1512-
public virtual ClientResult GetChatCompletion(GetChatCompletionOptions options, RequestOptions requestOptions = null);
15131510
public virtual ClientResult<ChatCompletionResult> GetChatCompletion(GetChatCompletionOptions options, CancellationToken cancellationToken = default);
15141511
[Experimental("OPENAI001")]
15151512
public virtual ClientResult GetChatCompletion(string completionId, RequestOptions options);
15161513
[Experimental("OPENAI001")]
15171514
public virtual ClientResult<ChatCompletion> GetChatCompletion(string completionId, CancellationToken cancellationToken = default);
15181515
[Experimental("OPENAI001")]
1519-
public virtual Task<ClientResult> GetChatCompletionAsync(GetChatCompletionOptions options, RequestOptions requestOptions = null);
15201516
public virtual Task<ClientResult<ChatCompletionResult>> GetChatCompletionAsync(GetChatCompletionOptions options, CancellationToken cancellationToken = default);
15211517
[Experimental("OPENAI001")]
15221518
public virtual Task<ClientResult> GetChatCompletionAsync(string completionId, RequestOptions options);
@@ -1547,16 +1543,12 @@ public class ChatClient {
15471543
[Experimental("OPENAI001")]
15481544
public virtual Task<ClientResult<ChatCompletionList>> GetChatCompletionsAsync(GetChatCompletionsOptions options, CancellationToken cancellationToken = default);
15491545
[Experimental("OPENAI001")]
1550-
public virtual ClientResult UpdateChatCompletion(UpdateChatCompletionOptions options, RequestOptions requestOptions = null);
1551-
[Experimental("OPENAI001")]
15521546
public virtual ClientResult<ChatCompletionResult> UpdateChatCompletion(UpdateChatCompletionOptions options, CancellationToken cancellationToken = default);
15531547
[Experimental("OPENAI001")]
15541548
public virtual ClientResult UpdateChatCompletion(string completionId, BinaryContent content, RequestOptions options = null);
15551549
[Experimental("OPENAI001")]
15561550
public virtual ClientResult<ChatCompletion> UpdateChatCompletion(string completionId, IDictionary<string, string> metadata, CancellationToken cancellationToken = default);
15571551
[Experimental("OPENAI001")]
1558-
public virtual Task<ClientResult> UpdateChatCompletionAsync(UpdateChatCompletionOptions options, RequestOptions requestOptions = null);
1559-
[Experimental("OPENAI001")]
15601552
public virtual Task<ClientResult<ChatCompletionResult>> UpdateChatCompletionAsync(UpdateChatCompletionOptions options, CancellationToken cancellationToken = default);
15611553
[Experimental("OPENAI001")]
15621554
public virtual Task<ClientResult> UpdateChatCompletionAsync(string completionId, BinaryContent content, RequestOptions options = null);
@@ -2670,6 +2662,9 @@ public class UnknownResponseFormat : ResponseFormat, IJsonModel<ResponseFormat>,
26702662
public class UpdateChatCompletionOptions : JsonModel<UpdateChatCompletionOptions> {
26712663
public string CompletionId { get; set; }
26722664
public IDictionary<string, string> Metadata { get; }
2665+
[EditorBrowsable(EditorBrowsableState.Never)]
2666+
[Experimental("SCME0001")]
2667+
public ref JsonPatch Patch { get; }
26732668
protected override UpdateChatCompletionOptions CreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
26742669
protected virtual UpdateChatCompletionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
26752670
public static implicit operator BinaryContent(UpdateChatCompletionOptions options);

api/OpenAI.netstandard2.0.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,12 +1328,10 @@ public class ChatClient {
13281328
public virtual string Model { get; }
13291329
public ClientPipeline Pipeline { get; }
13301330
public virtual ClientResult<ChatCompletion> CompleteChat(params ChatMessage[] messages);
1331-
public virtual ClientResult CompleteChat(CreateChatCompletionOptions options, RequestOptions requestOptions = null);
13321331
public virtual ClientResult<ChatCompletionResult> CompleteChat(CreateChatCompletionOptions options, CancellationToken cancellationToken = default);
13331332
public virtual ClientResult CompleteChat(BinaryContent content, RequestOptions options = null);
13341333
public virtual ClientResult<ChatCompletion> CompleteChat(IEnumerable<ChatMessage> messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default);
13351334
public virtual Task<ClientResult<ChatCompletion>> CompleteChatAsync(params ChatMessage[] messages);
1336-
public virtual Task<ClientResult> CompleteChatAsync(CreateChatCompletionOptions options, RequestOptions requestOptions = null);
13371335
public virtual Task<ClientResult<ChatCompletionResult>> CompleteChatAsync(CreateChatCompletionOptions options, CancellationToken cancellationToken = default);
13381336
public virtual Task<ClientResult> CompleteChatAsync(BinaryContent content, RequestOptions options = null);
13391337
public virtual Task<ClientResult<ChatCompletion>> CompleteChatAsync(IEnumerable<ChatMessage> messages, ChatCompletionOptions options = null, CancellationToken cancellationToken = default);
@@ -1347,11 +1345,9 @@ public class ChatClient {
13471345
public virtual ClientResult<ChatCompletionDeletionResult> DeleteChatCompletion(string completionId, CancellationToken cancellationToken = default);
13481346
public virtual Task<ClientResult> DeleteChatCompletionAsync(string completionId, RequestOptions options);
13491347
public virtual Task<ClientResult<ChatCompletionDeletionResult>> DeleteChatCompletionAsync(string completionId, CancellationToken cancellationToken = default);
1350-
public virtual ClientResult GetChatCompletion(GetChatCompletionOptions options, RequestOptions requestOptions = null);
13511348
public virtual ClientResult<ChatCompletionResult> GetChatCompletion(GetChatCompletionOptions options, CancellationToken cancellationToken = default);
13521349
public virtual ClientResult GetChatCompletion(string completionId, RequestOptions options);
13531350
public virtual ClientResult<ChatCompletion> GetChatCompletion(string completionId, CancellationToken cancellationToken = default);
1354-
public virtual Task<ClientResult> GetChatCompletionAsync(GetChatCompletionOptions options, RequestOptions requestOptions = null);
13551351
public virtual Task<ClientResult<ChatCompletionResult>> GetChatCompletionAsync(GetChatCompletionOptions options, CancellationToken cancellationToken = default);
13561352
public virtual Task<ClientResult> GetChatCompletionAsync(string completionId, RequestOptions options);
13571353
public virtual Task<ClientResult<ChatCompletion>> GetChatCompletionAsync(string completionId, CancellationToken cancellationToken = default);
@@ -1367,11 +1363,9 @@ public class ChatClient {
13671363
public virtual AsyncCollectionResult<ChatCompletion> GetChatCompletionsAsync(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default);
13681364
public virtual AsyncCollectionResult GetChatCompletionsAsync(GetChatCompletionsOptions options, RequestOptions requestOptions);
13691365
public virtual Task<ClientResult<ChatCompletionList>> GetChatCompletionsAsync(GetChatCompletionsOptions options, CancellationToken cancellationToken = default);
1370-
public virtual ClientResult UpdateChatCompletion(UpdateChatCompletionOptions options, RequestOptions requestOptions = null);
13711366
public virtual ClientResult<ChatCompletionResult> UpdateChatCompletion(UpdateChatCompletionOptions options, CancellationToken cancellationToken = default);
13721367
public virtual ClientResult UpdateChatCompletion(string completionId, BinaryContent content, RequestOptions options = null);
13731368
public virtual ClientResult<ChatCompletion> UpdateChatCompletion(string completionId, IDictionary<string, string> metadata, CancellationToken cancellationToken = default);
1374-
public virtual Task<ClientResult> UpdateChatCompletionAsync(UpdateChatCompletionOptions options, RequestOptions requestOptions = null);
13751369
public virtual Task<ClientResult<ChatCompletionResult>> UpdateChatCompletionAsync(UpdateChatCompletionOptions options, CancellationToken cancellationToken = default);
13761370
public virtual Task<ClientResult> UpdateChatCompletionAsync(string completionId, BinaryContent content, RequestOptions options = null);
13771371
public virtual Task<ClientResult<ChatCompletion>> UpdateChatCompletionAsync(string completionId, IDictionary<string, string> metadata, CancellationToken cancellationToken = default);
@@ -2289,6 +2283,8 @@ public class UnknownResponseFormat : ResponseFormat, IJsonModel<ResponseFormat>,
22892283
public class UpdateChatCompletionOptions : JsonModel<UpdateChatCompletionOptions> {
22902284
public string CompletionId { get; set; }
22912285
public IDictionary<string, string> Metadata { get; }
2286+
[EditorBrowsable(EditorBrowsableState.Never)]
2287+
public ref JsonPatch Patch { get; }
22922288
protected override UpdateChatCompletionOptions CreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
22932289
protected virtual UpdateChatCompletionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
22942290
public static implicit operator BinaryContent(UpdateChatCompletionOptions options);

0 commit comments

Comments
 (0)