openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/sub-pr-1011-another-one

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Generated/Models/Chat/ChatCompletionCollectionOptions.cs

52lines · modecode

1// <auto-generated/>
2
3#nullable disable
4
5using System.ClientModel.Primitives;
6using System.Collections.Generic;
7using System.ComponentModel;
8using System.Diagnostics.CodeAnalysis;
9using System.Text.Json.Serialization;
10using OpenAI;
11
12namespace OpenAI.Chat
13{
14 [Experimental("OPENAI001")]
15 public partial class ChatCompletionCollectionOptions
16 {
17 [Experimental("SCME0001")]
18 private JsonPatch _patch;
19
20 public ChatCompletionCollectionOptions() : this(null, default, default, null, null, default)
21 {
22 }
23
24#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
25 internal ChatCompletionCollectionOptions(string afterId, int? pageSizeLimit, ChatCompletionCollectionOrder? order, IDictionary<string, string> metadata, string model, in JsonPatch patch)
26 {
27 // Plugin customization: ensure initialization of collections
28 AfterId = afterId;
29 PageSizeLimit = pageSizeLimit;
30 Order = order;
31 Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
32 Model = model;
33 _patch = patch;
34 }
35#pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
36
37 [JsonIgnore]
38 [EditorBrowsable(EditorBrowsableState.Never)]
39 [Experimental("SCME0001")]
40 public ref JsonPatch Patch => ref _patch;
41
42 public string AfterId { get; set; }
43
44 public int? PageSizeLimit { get; set; }
45
46 public ChatCompletionCollectionOrder? Order { get; set; }
47
48 public IDictionary<string, string> Metadata { get; }
49
50 public string Model { get; set; }
51 }
52}
53