|
1 | 1 | @using System.Linq |
2 | 2 |
|
3 | | -<FluentLayout Id="@Id"> |
| 3 | +<div id="@Id"> |
4 | 4 |
|
5 | 5 | @* Past Messages Slider *@ |
6 | 6 | <LabelWithTooltip Id="slider-past-messages" |
| 7 | + Class="label-with-tooltip" |
7 | 8 | LabelText="Past messages included" |
8 | | - 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." |
9 | | - Style="padding-left:10px;font-weight:bold" /> |
| 9 | + 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." /> |
10 | 10 |
|
11 | | - <SliderWithTextfield Min="1" Max="20" Step="1" @bind-Value=@pastMessagesValue Style="padding-left:5px;padding-right:10px;" /> |
| 11 | + <SliderWithTextfield Class="slider-with-text" Min="1" Max="20" Step="1" @bind-Value=@pastMessagesValue /> |
12 | 12 |
|
13 | 13 | @* Max Response Slider *@ |
14 | 14 | <LabelWithTooltip Id="slider-max-response" |
| 15 | + Class="label-with-tooltip" |
15 | 16 | LabelText="Max response" |
16 | | - 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." |
17 | | - Style="padding-left:10px;font-weight:bold" /> |
| 17 | + 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." /> |
18 | 18 |
|
19 | | - <SliderWithTextfield Min="1" Max="16000" Step="1" @bind-Value=@maxResponseValue Style="padding-left:5px;padding-right:10px;" /> |
| 19 | + <SliderWithTextfield Class="slider-with-text" Min="1" Max="16000" Step="1" @bind-Value=@maxResponseValue /> |
20 | 20 |
|
21 | 21 | @* Temperature Slider *@ |
22 | 22 | <LabelWithTooltip Id="slider-temperature" |
| 23 | + Class="label-with-tooltip" |
23 | 24 | LabelText="Temperature" |
24 | | - 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." |
25 | | - Style="padding-left:10px;font-weight:bold" /> |
| 25 | + 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." /> |
26 | 26 |
|
27 | | - <SliderWithTextfield Min="0" Max="1" Step="0.01" @bind-Value=@temperatureValue Style="padding-left:5px;padding-right:10px;" /> |
| 27 | + <SliderWithTextfield Class="slider-with-text" Min="0" Max="1" Step="0.01" @bind-Value=@temperatureValue /> |
28 | 28 |
|
29 | 29 | @* Top P Slider *@ |
30 | 30 | <LabelWithTooltip Id="slider-top-p" |
| 31 | + Class="label-with-tooltip" |
31 | 32 | LabelText="Top P" |
32 | | - 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." |
33 | | - Style="padding-left:10px;font-weight:bold" /> |
34 | | - <SliderWithTextfield Min="0" Max="1" Step="0.01" @bind-Value=@topPValue Style="padding-left:5px;padding-right:10px;" /> |
| 33 | + 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." /> |
| 34 | + |
| 35 | + <SliderWithTextfield Class="slider-with-text" Min="0" Max="1" Step="0.01" @bind-Value=@topPValue /> |
35 | 36 |
|
36 | 37 | @* Stop Sequence Auto Complete *@ |
37 | 38 | <LabelWithTooltip Id="complete-stop-sequence" |
| 39 | + Class="label-with-tooltip" |
38 | 40 | LabelText="Stop sequence" |
39 | | - TooltipText="Make the model end its response at a desired point. The model response will end before the specified sequence, so it won't contain the stop sequence text. For ChatGPT, using <|im_end|> ensures that the model response doesn't generate a follow-up user query. You can include as many as four stop sequences." |
40 | | - Style="padding-left:10px;font-weight:bold" /> |
| 41 | + TooltipText="Make the model end its response at a desired point. The model response will end before the specified sequence, so it won't contain the stop sequence text. For ChatGPT, using <|im_end|> ensures that the model response doesn't generate a follow-up user query. You can include as many as four stop sequences." /> |
41 | 42 |
|
42 | 43 | <FluentAutocomplete TOption="string" Multiple="true" AutoComplete="false" |
43 | 44 | ShowOverlayOnEmptyResults="false" |
|
53 | 54 |
|
54 | 55 | @* Frequency Penalty Slider *@ |
55 | 56 | <LabelWithTooltip Id="slider-frequency-penalty" |
| 57 | + Class="label-with-tooltip" |
56 | 58 | LabelText="Frequency penalty" |
57 | | - 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." |
58 | | - Style="padding-left:10px;font-weight:bold" /> |
| 59 | + 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." /> |
59 | 60 |
|
60 | | - <SliderWithTextfield Min="0" Max="2" Step="0.01" @bind-Value=@frequencyPenaltyValue Style="padding-left:5px;padding-right:10px;" /> |
| 61 | + <SliderWithTextfield Class="slider-with-text" Min="0" Max="2" Step="0.01" @bind-Value=@frequencyPenaltyValue /> |
61 | 62 |
|
62 | 63 | @* Presence Penalty Slider *@ |
63 | 64 | <LabelWithTooltip Id="slider-presence-penalty" |
| 65 | + Class="label-with-tooltip" |
64 | 66 | LabelText="Presence penalty" |
65 | | - 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." |
66 | | - Style="padding-left:10px;font-weight:bold" /> |
| 67 | + 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." /> |
67 | 68 |
|
68 | | - <SliderWithTextfield Min="0" Max="2" Step="0.01" @bind-Value=@presencePenaltyValue Style="padding-left:5px;padding-right:10px;" /> |
| 69 | + <SliderWithTextfield Class="slider-with-text" Min="0" Max="2" Step="0.01" @bind-Value=@presencePenaltyValue /> |
69 | 70 |
|
70 | | -</FluentLayout> |
| 71 | +</div> |
71 | 72 |
|
72 | 73 | @code { |
73 | 74 | [Parameter] |
|
0 commit comments