Skip to content

Commit d318fa8

Browse files
committed
export
1 parent 92ffbea commit d318fa8

File tree

3 files changed

+82
-140
lines changed

3 files changed

+82
-140
lines changed

api/OpenAI.net8.0.cs

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ public class AssistantClient {
123123
public virtual Task<ClientResult> GetAssistantAsync(string assistantId, RequestOptions options);
124124
public virtual Task<ClientResult<Assistant>> GetAssistantAsync(string assistantId, CancellationToken cancellationToken = default);
125125
public virtual CollectionResult<Assistant> GetAssistants(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default);
126-
public virtual CollectionResult<Assistant> GetAssistants(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
127126
public virtual CollectionResult GetAssistants(int? limit, string order, string after, string before, RequestOptions options);
128127
public virtual AsyncCollectionResult<Assistant> GetAssistantsAsync(AssistantCollectionOptions options = null, CancellationToken cancellationToken = default);
129-
public virtual AsyncCollectionResult<Assistant> GetAssistantsAsync(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
130128
public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, RequestOptions options);
131129
public virtual ClientResult GetMessage(string threadId, string messageId, RequestOptions options);
132130
public virtual ClientResult<ThreadMessage> GetMessage(string threadId, string messageId, CancellationToken cancellationToken = default);
@@ -184,11 +182,15 @@ public class AssistantClient {
184182
public virtual AsyncCollectionResult<StreamingUpdate> SubmitToolOutputsToRunStreamingAsync(string threadId, string runId, IEnumerable<ToolOutput> toolOutputs, CancellationToken cancellationToken = default);
185183
}
186184
[Experimental("OPENAI001")]
187-
public class AssistantCollectionOptions {
185+
public class AssistantCollectionOptions : IJsonModel<AssistantCollectionOptions>, IPersistableModel<AssistantCollectionOptions> {
188186
public string AfterId { get; set; }
189187
public string BeforeId { get; set; }
190188
public AssistantCollectionOrder? Order { get; set; }
191189
public int? PageSizeLimit { get; set; }
190+
protected virtual AssistantCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
191+
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
192+
protected virtual AssistantCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
193+
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
192194
}
193195
[Experimental("OPENAI001")]
194196
public readonly partial struct AssistantCollectionOrder : IEquatable<AssistantCollectionOrder> {
@@ -202,6 +204,7 @@ public class AssistantCollectionOptions {
202204
public override readonly int GetHashCode();
203205
public static bool operator ==(AssistantCollectionOrder left, AssistantCollectionOrder right);
204206
public static implicit operator AssistantCollectionOrder(string value);
207+
public static implicit operator AssistantCollectionOrder?(string value);
205208
public static bool operator !=(AssistantCollectionOrder left, AssistantCollectionOrder right);
206209
public override readonly string ToString();
207210
}
@@ -1471,7 +1474,7 @@ public class ChatClient {
14711474
[Experimental("OPENAI001")]
14721475
public virtual Task<ClientResult<ChatCompletion>> GetChatCompletionAsync(string completionId, CancellationToken cancellationToken = default);
14731476
[Experimental("OPENAI001")]
1474-
public virtual CollectionResult<ChatCompletionMessageListDatum> GetChatCompletionMessages(string completionId, ChatCompletionCollectionOptions options = null, CancellationToken cancellationToken = default);
1477+
public virtual CollectionResult<ChatCompletionMessageListDatum> GetChatCompletionMessages(string completionId, ChatCompletionMessageCollectionOptions options = null, CancellationToken cancellationToken = default);
14751478
[Experimental("OPENAI001")]
14761479
public virtual CollectionResult GetChatCompletionMessages(string completionId, string after, int? limit, string order, RequestOptions options);
14771480
[Experimental("OPENAI001")]
@@ -5715,18 +5718,24 @@ public class VectorStoreClient {
57155718
public virtual ClientResult<VectorStoreFileAssociation> GetFileAssociation(string vectorStoreId, string fileId, CancellationToken cancellationToken = default);
57165719
public virtual Task<ClientResult> GetFileAssociationAsync(string vectorStoreId, string fileId, RequestOptions options);
57175720
public virtual Task<ClientResult<VectorStoreFileAssociation>> GetFileAssociationAsync(string vectorStoreId, string fileId, CancellationToken cancellationToken = default);
5721+
public virtual CollectionResult<VectorStoreFileAssociation> GetFileAssociations(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
57185722
public virtual CollectionResult<VectorStoreFileAssociation> GetFileAssociations(string vectorStoreId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
57195723
public virtual CollectionResult GetFileAssociations(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options);
5724+
public virtual CollectionResult<VectorStoreFileAssociation> GetFileAssociations(string vectorStoreId, string batchJobId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
5725+
public virtual CollectionResult<VectorStoreFileAssociation> GetFileAssociations(string vectorStoreId, string batchJobId, ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
5726+
public virtual CollectionResult GetFileAssociations(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
5727+
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsAsync(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
57205728
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsAsync(string vectorStoreId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
57215729
public virtual AsyncCollectionResult GetFileAssociationsAsync(string vectorStoreId, int? limit, string order, string after, string before, string filter, RequestOptions options);
5722-
public virtual CollectionResult<VectorStoreFileAssociation> GetFileAssociationsInBatch(string vectorStoreId, string batchId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
5723-
public virtual CollectionResult GetFileAssociationsInBatch(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
5724-
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
5725-
public virtual AsyncCollectionResult GetFileAssociationsInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
5730+
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsAsync(string vectorStoreId, string batchJobId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
5731+
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsAsync(string vectorStoreId, string batchJobId, ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
5732+
public virtual AsyncCollectionResult GetFileAssociationsAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
57265733
public virtual ClientResult<VectorStore> GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default);
57275734
public virtual CollectionResult<VectorStore> GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);
5735+
public virtual CollectionResult<VectorStore> GetVectorStores(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
57285736
public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options);
57295737
public virtual AsyncCollectionResult<VectorStore> GetVectorStoresAsync(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);
5738+
public virtual AsyncCollectionResult<VectorStore> GetVectorStoresAsync(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
57305739
public virtual AsyncCollectionResult GetVectorStoresAsync(int? limit, string order, string after, string before, RequestOptions options);
57315740
public virtual ClientResult<VectorStore> ModifyVectorStore(string vectorStoreId, VectorStoreModificationOptions options, CancellationToken cancellationToken = default);
57325741
public virtual ClientResult ModifyVectorStore(string vectorStoreId, BinaryContent content, RequestOptions options = null);
@@ -5746,15 +5755,11 @@ public class VectorStoreClient {
57465755
public virtual Task<ClientResult<VectorStoreFileAssociation>> UpdateVectorStoreFileAttributesAsync(string vectorStoreId, string fileId, IDictionary<string, BinaryData> attributes, CancellationToken cancellationToken = default);
57475756
}
57485757
[Experimental("OPENAI001")]
5749-
public class VectorStoreCollectionOptions : IJsonModel<VectorStoreCollectionOptions>, IPersistableModel<VectorStoreCollectionOptions> {
5758+
public class VectorStoreCollectionOptions {
57505759
public string AfterId { get; set; }
57515760
public string BeforeId { get; set; }
57525761
public VectorStoreCollectionOrder? Order { get; set; }
57535762
public int? PageSizeLimit { get; set; }
5754-
protected virtual VectorStoreCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
5755-
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
5756-
protected virtual VectorStoreCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
5757-
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
57585763
}
57595764
[Experimental("OPENAI001")]
57605765
public readonly partial struct VectorStoreCollectionOrder : IEquatable<VectorStoreCollectionOrder> {
@@ -5826,16 +5831,27 @@ public class VectorStoreFileAssociation : IJsonModel<VectorStoreFileAssociation>
58265831
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
58275832
}
58285833
[Experimental("OPENAI001")]
5829-
public class VectorStoreFileAssociationCollectionOptions : IJsonModel<VectorStoreFileAssociationCollectionOptions>, IPersistableModel<VectorStoreFileAssociationCollectionOptions> {
5834+
public class VectorStoreFileAssociationCollectionOptions {
58305835
public string AfterId { get; set; }
58315836
public string BeforeId { get; set; }
58325837
public VectorStoreFileStatusFilter? Filter { get; set; }
5833-
public VectorStoreCollectionOrder? Order { get; set; }
5838+
public VectorStoreFileAssociationCollectionOrder? Order { get; set; }
58345839
public int? PageSizeLimit { get; set; }
5835-
protected virtual VectorStoreFileAssociationCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
5836-
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
5837-
protected virtual VectorStoreFileAssociationCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
5838-
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
5840+
}
5841+
[Experimental("OPENAI001")]
5842+
public readonly partial struct VectorStoreFileAssociationCollectionOrder : IEquatable<VectorStoreFileAssociationCollectionOrder> {
5843+
public VectorStoreFileAssociationCollectionOrder(string value);
5844+
public static VectorStoreFileAssociationCollectionOrder Ascending { get; }
5845+
public static VectorStoreFileAssociationCollectionOrder Descending { get; }
5846+
public readonly bool Equals(VectorStoreFileAssociationCollectionOrder other);
5847+
[EditorBrowsable(EditorBrowsableState.Never)]
5848+
public override readonly bool Equals(object obj);
5849+
[EditorBrowsable(EditorBrowsableState.Never)]
5850+
public override readonly int GetHashCode();
5851+
public static bool operator ==(VectorStoreFileAssociationCollectionOrder left, VectorStoreFileAssociationCollectionOrder right);
5852+
public static implicit operator VectorStoreFileAssociationCollectionOrder(string value);
5853+
public static bool operator !=(VectorStoreFileAssociationCollectionOrder left, VectorStoreFileAssociationCollectionOrder right);
5854+
public override readonly string ToString();
58395855
}
58405856
[Experimental("OPENAI001")]
58415857
public class VectorStoreFileAssociationError : IJsonModel<VectorStoreFileAssociationError>, IPersistableModel<VectorStoreFileAssociationError> {

0 commit comments

Comments
 (0)