Class BedrockRequest_AI21Labs_Jurassic2
Inherited Members
Namespace: Glitch9.AIDevKit.AmazonAws
Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
Syntax
public class BedrockRequest_AI21Labs_Jurassic2
Properties
| Edit this page View SourceCountPenalty
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 |
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 |
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? |
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 |
Prompt
Required. The prompt to send to the model.
Declaration
[JsonProperty("prompt")]
public string Prompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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[] |
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? |
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? |