Search Results for

    Show / Hide Table of Contents

    Class CohereLogProbs

    Inheritance
    object
    CohereLogProbs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Cohere
    Assembly: Glitch9.AIDevKit.Provider.Cohere.dll
    Syntax
    public sealed class CohereLogProbs

    Properties

    | Edit this page View Source

    LogProbs

    Required. The log probability of each token used to construct the text chunk.

    Declaration
    [JsonProperty("logprobs")]
    public double[] LogProbs { get; set; }
    Property Value
    Type Description
    double[]
    | Edit this page View Source

    Text

    Required. The text chunk for which the log probabilities was calculated.

    Declaration
    [JsonProperty("text")]
    public string Text { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    TokenIds

    Required. The token ids of each token used to construct the text chunk.

    Declaration
    [JsonProperty("token_ids")]
    public int[] TokenIds { get; set; }
    Property Value
    Type Description
    int[]

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation