|
3 | 3 | <div id="@Id" class="parameter-tab">
|
4 | 4 | @* Past Messages Range *@
|
5 | 5 | <ParameterRangeComponent Id="range-past-messages"
|
6 |
| - LabelText="Past messages included" |
7 |
| - TooltipText="Select the number of past messages to include in each new API request. This helps give the model context for new user queries. Setting this number to 10 will include 5 user queries and 5 system responses." |
8 |
| - Min="1" Max="20" Step="1" @bind-Value=@pastMessagesValue /> |
| 6 | + LabelText="Past messages included" |
| 7 | + TooltipText="Select the number of past messages to include in each new API request. This helps give the model context for new user queries. Setting this number to 10 will include 5 user queries and 5 system responses." |
| 8 | + Min="1" Max="20" Step="1" @bind-Value=@pastMessagesValue /> |
9 | 9 |
|
10 | 10 | @* Max Response Range *@
|
11 | 11 | <ParameterRangeComponent Id="range-max-response"
|
12 |
| - LabelText="Max response" |
13 |
| - TooltipText="Set a limit on the number of tokens per model response. The API supports a maximum of MaxTokensPlaceholderDoNotTranslate tokens shared between the prompt (including system message, examples, message history, and user query) and the model's response. One token is roughly 4 characters for typical English text." |
14 |
| - Min="1" Max="16000" Step="1" @bind-Value=@maxResponseValue /> |
| 12 | + LabelText="Max response" |
| 13 | + TooltipText="Set a limit on the number of tokens per model response. The API supports a maximum of MaxTokensPlaceholderDoNotTranslate tokens shared between the prompt (including system message, examples, message history, and user query) and the model's response. One token is roughly 4 characters for typical English text." |
| 14 | + Min="1" Max="16000" Step="1" @bind-Value=@maxResponseValue /> |
15 | 15 |
|
16 | 16 | @* Temperature Range *@
|
17 | 17 | <ParameterRangeComponent Id="range-temperature"
|
18 |
| - LabelText="Temperature" |
19 |
| - TooltipText="Controls randomness. Lowering the temperature means that the model will produce more repetitive and deterministic responses. Increasing the temperature will result in more unexpected or creative responses. Try adjusting temperature or Top P but not both." |
20 |
| - Min="0" Max="1" Step="0.01" @bind-Value=@temperatureValue /> |
| 18 | + LabelText="Temperature" |
| 19 | + TooltipText="Controls randomness. Lowering the temperature means that the model will produce more repetitive and deterministic responses. Increasing the temperature will result in more unexpected or creative responses. Try adjusting temperature or Top P but not both." |
| 20 | + Min="0" Max="1" Step="0.01" @bind-Value=@temperatureValue /> |
21 | 21 |
|
22 | 22 | @* Top P Range *@
|
23 | 23 | <ParameterRangeComponent Id="range-top-p"
|
24 |
| - LabelText="Top P" |
25 |
| - TooltipText="Similar to temperature, this controls randomness but uses a different method. Lowering Top P will narrow the model’s token selection to likelier tokens. Increasing Top P will let the model choose from tokens with both high and low likelihood. Try adjusting temperature or Top P but not both." |
26 |
| - Min="0" Max="1" Step="0.01" @bind-Value=@topPValue /> |
| 24 | + LabelText="Top P" |
| 25 | + TooltipText="Similar to temperature, this controls randomness but uses a different method. Lowering Top P will narrow the model’s token selection to likelier tokens. Increasing Top P will let the model choose from tokens with both high and low likelihood. Try adjusting temperature or Top P but not both." |
| 26 | + Min="0" Max="1" Step="0.01" @bind-Value=@topPValue /> |
27 | 27 |
|
28 | 28 | @* Stop Sequence Multi Select *@
|
29 | 29 | <ParameterMultiselectComponent Id="select-stop-sequence"
|
|
33 | 33 |
|
34 | 34 | @* Frequency Penalty Range *@
|
35 | 35 | <ParameterRangeComponent Id="range-frequency-penalty"
|
36 |
| - LabelText="Frequency penalty" |
37 |
| - TooltipText="Reduce the chance of repeating a token proportionally based on how often it has appeared in the text so far. This decreases the likelihood of repeating the exact same text in a response." |
38 |
| - Min="0" Max="2" Step="0.01" @bind-Value=@frequencyPenaltyValue /> |
| 36 | + LabelText="Frequency penalty" |
| 37 | + TooltipText="Reduce the chance of repeating a token proportionally based on how often it has appeared in the text so far. This decreases the likelihood of repeating the exact same text in a response." |
| 38 | + Min="0" Max="2" Step="0.01" @bind-Value=@frequencyPenaltyValue /> |
39 | 39 |
|
40 | 40 | @* Presence Penalty Range *@
|
41 | 41 | <ParameterRangeComponent Id="range-presence-penalty"
|
42 |
| - LabelText="Presence penalty" |
43 |
| - TooltipText="Reduce the chance of repeating any token that has appeared in the text at all so far. This increases the likelihood of introducing new topics in a response." |
44 |
| - Min="0" Max="2" Step="0.01" @bind-Value=@presencePenaltyValue /> |
| 42 | + LabelText="Presence penalty" |
| 43 | + TooltipText="Reduce the chance of repeating any token that has appeared in the text at all so far. This increases the likelihood of introducing new topics in a response." |
| 44 | + Min="0" Max="2" Step="0.01" @bind-Value=@presencePenaltyValue /> |
45 | 45 | </div>
|
46 | 46 |
|
47 | 47 | @code {
|
|
0 commit comments