Search Results for

    Show / Hide Table of Contents

    Class BedrockRequest_AI21Labs_Jurassic2

    Inheritance
    object
    BedrockRequest_AI21Labs_Jurassic2
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public class BedrockRequest_AI21Labs_Jurassic2

    Properties

    | Edit this page View Source

    CountPenalty

    Optional. Use a higher value to lower the probability of generating new tokens that already appear at least once in the prompt or in the completion. Proportional to the number of appearances.

    Declaration
    [JsonProperty("countPenalty")]
    public BedrockRequest_AI21Labs_Jurassic2.PenaltySettings CountPenalty { get; set; }
    Property Value
    Type Description
    BedrockRequest_AI21Labs_Jurassic2.PenaltySettings
    | Edit this page View Source

    FrequencyPenalty

    Optional. Use a high value to lower the probability of generating new tokens that already appear at least once in the prompt or in the completion. The value is proportional to the frequency of the token appearances (normalized to text length).

    Declaration
    [JsonProperty("frequencyPenalty")]
    public BedrockRequest_AI21Labs_Jurassic2.PenaltySettings FrequencyPenalty { get; set; }
    Property Value
    Type Description
    BedrockRequest_AI21Labs_Jurassic2.PenaltySettings
    | Edit this page View Source

    MaxTokens

    Optional. Specify the maximum number of tokens to use in the generated response. Minimum: 0, Maximum: 8191 (mid, ultra, and large models), 2048 (other models), Default: 200

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

    PresencePenalty

    Optional. Use a higher value to lower the probability of generating new tokens that already appear at least once in the prompt or in the completion.

    Declaration
    [JsonProperty("presencePenalty")]
    public BedrockRequest_AI21Labs_Jurassic2.PenaltySettings PresencePenalty { get; set; }
    Property Value
    Type Description
    BedrockRequest_AI21Labs_Jurassic2.PenaltySettings
    | Edit this page View Source

    Prompt

    Required. The prompt to send to the model.

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

    StopSequences

    Optional. Configure stop sequences that the model recognizes and after which it stops generating further tokens.

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

    Temperature

    Optional. Use a lower value to decrease randomness in the response. Minimum: 0, Maximum: 1, Default: 0.5

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

    TopP

    Optional. Use a lower value to ignore less probable options. Minimum: 0, Maximum: 1, Default: 0.5

    Declaration
    [JsonProperty("topP")]
    public float? TopP { get; set; }
    Property Value
    Type Description
    float?

    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