|
6 | 6 | </head>
|
7 | 7 | <body>
|
8 | 8 | <form id="options-form">
|
9 |
| - <fieldset role="group" aria-labelledby="api-settings"> |
10 |
| - <legend id="api-settings"></legend> |
11 |
| - <label for="apiKey" id="apiKeyLabel"></label> |
12 |
| - <input type="password" id="apiKey" name="apiKey" value="pplx-xxxxxxxxxxx" aria-required="true"><br> |
13 |
| - <label for="model" id="modelLabel"></label> |
14 |
| - <select id="model" name="model" aria-required="true"> |
15 |
| - <optgroup label="Perplexity Models"> |
16 |
| - <option value="sonar-small-chat">sonar-small-chat (7B)</option> |
17 |
| - <option value="sonar-small-online">sonar-small-online (7B)</option> |
18 |
| - <option value="sonar-medium-chat" selected>sonar-medium-chat (8x7B)</option> |
19 |
| - <option value="sonar-medium-online">sonar-medium-online (8x7B)</option> |
20 |
| - </optgroup> |
21 |
| - <optgroup label="Open-Source Models"> |
22 |
| - <option value="codellama-70b-instruct">codellama-70b-instruct (70B)</option> |
23 |
| - <option value="mistral-7b-instruct">mistral-7b-instruct (7B)</option> |
24 |
| - <option value="mixtral-8x7b-instruct">mixtral-8x7b-instruct (8x7B)</option> |
25 |
| - </optgroup> |
26 |
| - </select> |
| 9 | + <fieldset role="group" aria-labelledby="api-settings"> |
| 10 | + <legend id="api-settings"></legend> |
| 11 | + <label for="apiKey" id="apiKeyLabel"></label> |
27 | 12 |
|
28 |
| - <div class="input-row"> |
29 |
| - <div class="input-group"> |
30 |
| - <label for="temperature" id="tempLabel"></label> |
31 |
| - <input type="number" id="temperature" name="temperature" value="1" step="0.01" min="0" max="2" aria-required="true"> |
32 |
| - </div> |
33 |
| - <div class="input-group"> |
34 |
| - <label for="maxTokens" id="maxTokensLabel">Max Tokens</label> |
35 |
| - <input type="number" id="maxTokens" name="maxTokens" value="" step="1" min="1" max="2048" aria-required="true"> |
36 |
| - </div> |
37 |
| - </div> |
38 |
| - <div class="input-row"> |
39 |
| - <div class="input-group"> |
40 |
| - <label for="topP" id="topPLabel">Top-p</label> |
41 |
| - <input type="number" id="topP" name="topP" value="" step="0.01" min="0" max="1" aria-required="true"> |
42 |
| - </div> |
43 |
| - <div class="input-group"> |
44 |
| - <label for="topK" id="topKLabel">Top-k</label> |
45 |
| - <input type="number" id="topK" name="topK" value="" step="1" min="1" max="2048" aria-required="true"> |
46 |
| - </div> |
47 |
| - </div> |
48 |
| - <div class="input-row"> |
49 |
| - <div class="input-group"> |
50 |
| - <label for="frequencyPenalty" id="frequencyPenaltyLabel">Frequency penalty</label> |
51 |
| - <input type="number" id="frequencyPenalty" name="frequencyPenalty" value="" step="0.1" min="-2" max="2" aria-required="true"> |
52 |
| - </div> |
53 |
| - <div class="input-group"> |
54 |
| - <label for="presencePenalty" id="presencePenaltyLabel">Presence penalty</label> |
55 |
| - <input type="number" id="presencePenalty" name="presencePenalty" value="" step="0.1" min="0" max="2" aria-required="true"> |
56 |
| - </div> |
57 |
| - </div> |
58 |
| - <div class="button-row"> |
59 |
| - <button type="submit" class="ok" id="save"> |
60 |
| - <span class="button-text"></span> |
61 |
| - <img src="save.svg" alt="Save icon" width="20" height="20" id="saveImg"/> |
62 |
| - </button> |
63 |
| - </div> |
64 |
| - </fieldset> |
65 |
| - </form> |
| 13 | + <input type="password" id="apiKey" name="apiKey" value="pplx-xxxxxxxxxxx" aria-required="true"> |
| 14 | + |
| 15 | + <label for="model" id="modelLabel"></label> |
| 16 | + <select id="model" name="model" aria-required="true"> |
| 17 | + <optgroup label="Perplexity Models"> |
| 18 | + <option value="sonar-small-chat">sonar-small-chat (7B)</option> |
| 19 | + <option value="sonar-small-online">sonar-small-online (7B)</option> |
| 20 | + <option value="sonar-medium-chat" selected>sonar-medium-chat (8x7B)</option> |
| 21 | + <option value="sonar-medium-online">sonar-medium-online (8x7B)</option> |
| 22 | + </optgroup> |
| 23 | + <optgroup label="Open-Source Models"> |
| 24 | + <option value="codellama-70b-instruct">codellama-70b-instruct (70B)</option> |
| 25 | + <option value="mistral-7b-instruct">mistral-7b-instruct (7B)</option> |
| 26 | + <option value="mixtral-8x7b-instruct">mixtral-8x7b-instruct (8x7B)</option> |
| 27 | + </optgroup> |
| 28 | + </select> |
| 29 | + |
| 30 | + <div class="input-row"> |
| 31 | + <div class="input-group"> |
| 32 | + <label for="temperature" id="tempLabel"></label> |
| 33 | + <div class="range-container"> |
| 34 | + <input type="range" id="temperature" name="temperature" value="1" step="0.01" min="0" max="2" aria-required="false"> |
| 35 | + <output for="temperature" id="temperatureOutput"></output> |
| 36 | + |
| 37 | + </div> |
| 38 | + |
| 39 | + </div> |
| 40 | + <div class="input-group"> |
| 41 | + <label for="maxTokens" id="maxTokensLabel">Max Tokens</label> |
| 42 | + <div class="range-container"> |
| 43 | + <input type="range" id="maxTokens" name="maxTokens" value="0" step="1" min="0" max="2048" aria-required="false"> |
| 44 | + <output for="maxTokens" id="maxTokensOutput"></output> |
| 45 | + |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + <div class="input-row"> |
| 50 | + <div class="input-group"> |
| 51 | + <label for="topP" id="topPLabel">Top-p</label> |
| 52 | + <div class="range-container"> |
| 53 | + <input type="range" id="topP" name="topP" value="0" step="0.01" min="0" max="1" aria-required="false"> |
| 54 | + <output for="topP" id="topPOutput"></output> |
| 55 | + |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + <div class="input-group"> |
| 59 | + <label for="topK" id="topKLabel">Top-k</label> |
| 60 | + <div class="range-container"> |
| 61 | + <input type="range" id="topK" name="topK" value="0" step="1" min="0" max="2048" aria-required="false"> |
| 62 | + <output for="topK" id="topKOutput"></output> |
| 63 | + |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + <div class="input-row"> |
| 68 | + <div class="input-group"> |
| 69 | + <label for="frequencyPenalty" id="frequencyPenaltyLabel">Frequency penalty</label> |
| 70 | + <div class="range-container"> |
| 71 | + <input type="range" id="frequencyPenalty" name="frequencyPenalty" value="-2" step="0.1" min="-2" max="2" aria-required="false"> |
| 72 | + <output for="frequencyPenalty" id="frequencyPenaltyOutput"></output> |
| 73 | + |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + <div class="input-group"> |
| 77 | + <label for="presencePenalty" id="presencePenaltyLabel">Presence penalty</label> |
| 78 | + <div class="range-container"> |
| 79 | + <input type="range" id="presencePenalty" name="presencePenalty" value="0" step="0.1" min="0" max="2" aria-required="false"> |
| 80 | + <output for="presencePenalty" id="presencePenaltyOutput"></output> |
| 81 | + |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + </div> |
| 85 | + <div class="button-row"> |
| 86 | + <button type="submit" class="ok" id="save"> |
| 87 | + <span class="button-text"></span> |
| 88 | + <img src="save.svg" alt="Save icon" width="20" height="20" id="saveImg"/> |
| 89 | + </button> |
| 90 | + </div> |
| 91 | + </fieldset> |
| 92 | + <div id="saveSuccess" class="info-badge" role="status"></div> |
| 93 | + <div id="saveError" class="error-badge" role="alert"></div> |
| 94 | + </form> |
66 | 95 |
|
67 | 96 | <script src="options.js"></script>
|
68 | 97 | </body>
|
|
0 commit comments