Search Results for

    Show / Hide Table of Contents

    Class Completions

    Expected response schema to completion request.

    Inheritance
    object
    Completions
    Implements
    IEquatable<Completions>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DotnetPrompt.LLM.OpenAI.Model
    Assembly: DotnetPrompt.LLM.OpenAI.dll
    Syntax
    public record Completions : IEquatable<Completions>

    Properties

    | Improve this Doc View Source

    Choices

    Array of choices returned containing text completions to prompts sent.

    Declaration
    [JsonPropertyName("choices")]
    public IReadOnlyList<Choice> Choices { get; init; }
    Property Value
    Type Description
    IReadOnlyList<Choice>
    | Improve this Doc View Source

    Created

    Created time for completion response.

    Declaration
    [JsonPropertyName("created")]
    public int? Created { get; init; }
    Property Value
    Type Description
    int?
    | Improve this Doc View Source

    Id

    Id for completion response.

    Declaration
    [JsonPropertyName("id")]
    public string Id { get; init; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Model

    Model used for completion response.

    Declaration
    [JsonPropertyName("model")]
    public string Model { get; init; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Usage

    Usage counts for tokens input using the completions API.

    Declaration
    [JsonPropertyName("usage")]
    public CompletionsUsage Usage { get; init; }
    Property Value
    Type Description
    CompletionsUsage

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt