Search Results for

    Show / Hide Table of Contents

    Class CohereModelInfo

    Information about a Cohere model.

    Inheritance
    object
    CohereModelInfo
    Implements
    IModelInfo
    IAIResource
    IData
    IHasId<string>
    IHasName
    IDeprecatable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Cohere
    Assembly: Glitch9.AIDevKit.Provider.Cohere.dll
    Syntax
    public class CohereModelInfo : IModelInfo, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable

    Properties

    | Edit this page View Source

    Api

    Declaration
    [JsonIgnore]
    public Api Api { get; }
    Property Value
    Type Description
    Api
    | Edit this page View Source

    ContextLength

    Optional. The maximum number of tokens that the model can process in a single request. Note that not all of these tokens are always available due to special tokens and preambles that Cohere has added by default.

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

    DefaultEndpoints

    Optional. The API endpoints that the model is default to.

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

    Endpoints

    Optional. The API endpoints that the model is compatible with.

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

    Features

    Optional. The features that the model supports.

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

    Finetuned

    Optional. Whether the model has been fine-tuned or not.

    Declaration
    [JsonProperty("finetuned")]
    public bool? Finetuned { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Id

    Required. Specify this name in the model parameter of API requests to use your chosen model.

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

    IsDeprecated

    Optional. Whether the model is deprecated or not.

    Declaration
    [JsonProperty("is_deprecated")]
    public bool? IsDeprecated { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Name

    Gets the name of this object.

    Declaration
    [JsonIgnore]
    public string Name { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    TokenizerUrl

    Optional. Public URL to the tokenizer's configuration file.

    Declaration
    [JsonProperty("tokenizer_url")]
    public string TokenizerUrl { get; set; }
    Property Value
    Type Description
    string

    Implements

    IModelInfo
    IAIResource
    IData
    IHasId<TId>
    IHasName
    IDeprecatable

    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)
    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation