openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
6b3c8b0a3d3208218dc3cbcd295502024988a956

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Generated/Models/Chat/ChatCompletionCollectionOptions.cs

52lines · modepreview

// <auto-generated/>

#nullable disable

using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
using OpenAI;

namespace OpenAI.Chat
{
    [Experimental("OPENAI001")]
    public partial class ChatCompletionCollectionOptions
    {
        [Experimental("SCME0001")]
        private JsonPatch _patch;

        public ChatCompletionCollectionOptions() : this(null, default, default, null, null, default)
        {
        }

#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
        internal ChatCompletionCollectionOptions(string afterId, int? pageSizeLimit, ChatCompletionCollectionOrder? order, IDictionary<string, string> metadata, string model, in JsonPatch patch)
        {
            // Plugin customization: ensure initialization of collections
            AfterId = afterId;
            PageSizeLimit = pageSizeLimit;
            Order = order;
            Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
            Model = model;
            _patch = patch;
        }
#pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.

        [JsonIgnore]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Experimental("SCME0001")]
        public ref JsonPatch Patch => ref _patch;

        public string AfterId { get; set; }

        public int? PageSizeLimit { get; set; }

        public ChatCompletionCollectionOrder? Order { get; set; }

        public IDictionary<string, string> Metadata { get; }

        public string Model { get; set; }
    }
}