Skip to content

Commit b2eed35

Browse files
committed
export
1 parent b89d28a commit b2eed35

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

api/OpenAI.net8.0.cs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,13 +1523,13 @@ public class ChatClient {
15231523
[Experimental("OPENAI001")]
15241524
public virtual CollectionResult GetChatCompletionMessages(GetChatCompletionMessageOptions options, RequestOptions requestOptions = null);
15251525
[Experimental("OPENAI001")]
1526-
public virtual ClientResult<ChatCompletionList> GetChatCompletionMessages(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
1526+
public virtual ClientResult<ChatCompletionMessageList> GetChatCompletionMessages(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
15271527
[Experimental("OPENAI001")]
15281528
public virtual CollectionResult<ChatCompletionMessageListDatum> GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default);
15291529
[Experimental("OPENAI001")]
15301530
public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(GetChatCompletionMessageOptions options, RequestOptions requestOptions = null);
15311531
[Experimental("OPENAI001")]
1532-
public virtual Task<ClientResult<ChatCompletionList>> GetChatCompletionMessagesAsync(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
1532+
public virtual Task<ClientResult<ChatCompletionMessageList>> GetChatCompletionMessagesAsync(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
15331533
[Experimental("OPENAI001")]
15341534
public virtual AsyncCollectionResult<ChatCompletionMessageListDatum> GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default);
15351535
[Experimental("OPENAI001")]
@@ -1685,6 +1685,21 @@ public class ChatCompletionMessageCollectionOptions : IJsonModel<ChatCompletionM
16851685
public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right);
16861686
public override readonly string ToString();
16871687
}
1688+
public class ChatCompletionMessageList : IJsonModel<ChatCompletionMessageList>, IPersistableModel<ChatCompletionMessageList> {
1689+
public IList<ChatCompletionMessageListDatum> Data { get; }
1690+
public string FirstId { get; }
1691+
public bool HasMore { get; }
1692+
public string LastId { get; }
1693+
public string Object { get; }
1694+
[EditorBrowsable(EditorBrowsableState.Never)]
1695+
[Experimental("SCME0001")]
1696+
public ref JsonPatch Patch { get; }
1697+
protected virtual ChatCompletionMessageList JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
1698+
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
1699+
public static explicit operator ChatCompletionMessageList(ClientResult result);
1700+
protected virtual ChatCompletionMessageList PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
1701+
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
1702+
}
16881703
[Experimental("OPENAI001")]
16891704
public class ChatCompletionMessageListDatum : IJsonModel<ChatCompletionMessageListDatum>, IPersistableModel<ChatCompletionMessageListDatum> {
16901705
public IReadOnlyList<ChatMessageAnnotation> Annotations { get; }

api/OpenAI.netstandard2.0.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,10 +1355,10 @@ public class ChatClient {
13551355
public virtual Task<ClientResult> GetChatCompletionAsync(string completionId, RequestOptions options);
13561356
public virtual Task<ClientResult<ChatCompletion>> GetChatCompletionAsync(string completionId, CancellationToken cancellationToken = default);
13571357
public virtual CollectionResult GetChatCompletionMessages(GetChatCompletionMessageOptions options, RequestOptions requestOptions = null);
1358-
public virtual ClientResult<ChatCompletionList> GetChatCompletionMessages(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
1358+
public virtual ClientResult<ChatCompletionMessageList> GetChatCompletionMessages(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
13591359
public virtual CollectionResult<ChatCompletionMessageListDatum> GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default);
13601360
public virtual AsyncCollectionResult GetChatCompletionMessagesAsync(GetChatCompletionMessageOptions options, RequestOptions requestOptions = null);
1361-
public virtual Task<ClientResult<ChatCompletionList>> GetChatCompletionMessagesAsync(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
1361+
public virtual Task<ClientResult<ChatCompletionMessageList>> GetChatCompletionMessagesAsync(GetChatCompletionMessageOptions options, CancellationToken cancellationToken = default);
13621362
public virtual AsyncCollectionResult<ChatCompletionMessageListDatum> GetChatCompletionMessagesAsync(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default);
13631363
public virtual CollectionResult<ChatCompletion> GetChatCompletions(ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default);
13641364
public virtual CollectionResult GetChatCompletions(GetChatCompletionsOptions options, RequestOptions requestOptions);
@@ -1480,6 +1480,20 @@ public class ChatCompletionMessageCollectionOptions : IJsonModel<ChatCompletionM
14801480
public static bool operator !=(ChatCompletionMessageCollectionOrder left, ChatCompletionMessageCollectionOrder right);
14811481
public override readonly string ToString();
14821482
}
1483+
public class ChatCompletionMessageList : IJsonModel<ChatCompletionMessageList>, IPersistableModel<ChatCompletionMessageList> {
1484+
public IList<ChatCompletionMessageListDatum> Data { get; }
1485+
public string FirstId { get; }
1486+
public bool HasMore { get; }
1487+
public string LastId { get; }
1488+
public string Object { get; }
1489+
[EditorBrowsable(EditorBrowsableState.Never)]
1490+
public ref JsonPatch Patch { get; }
1491+
protected virtual ChatCompletionMessageList JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
1492+
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
1493+
public static explicit operator ChatCompletionMessageList(ClientResult result);
1494+
protected virtual ChatCompletionMessageList PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
1495+
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
1496+
}
14831497
public class ChatCompletionMessageListDatum : IJsonModel<ChatCompletionMessageListDatum>, IPersistableModel<ChatCompletionMessageListDatum> {
14841498
public IReadOnlyList<ChatMessageAnnotation> Annotations { get; }
14851499
public string Content { get; }

0 commit comments

Comments
 (0)