update input type to number

This commit is contained in:
2026-02-26 18:00:40 +08:00
parent 96b108b482
commit ed3f52a568
6 changed files with 18 additions and 16 deletions

View File

@@ -103,15 +103,15 @@
<div class="amily2_settings_block">
<label for="amily2_max_tokens">最大Token数: <span id="amily2_max_tokens_value"></span></label>
<input id="amily2_max_tokens" type="range" min="100" max="100000" step="50" />
<input id="amily2_max_tokens" type="number" class="text_pole" min="100" max="100000"/>
</div>
<div class="amily2_settings_block">
<label for="amily2_temperature">思考活跃度: <span id="amily2_temperature_value"></span></label>
<input id="amily2_temperature" type="range" min="0" max="2" step="0.1" />
<input id="amily2_temperature" type="number" class="text_pole" min="0" max="2"/>
</div>
<div class="amily2_settings_block">
<label for="amily2_context_messages">上下文参考数: <span id="amily2_context_messages_value"></span></label>
<input id="amily2_context_messages" type="range" min="0" max="10" step="1" />
<input id="amily2_context_messages" type="number" class="text_pole" min="0" max="10"/>
</div>
</fieldset>

View File

@@ -73,9 +73,9 @@
</div>
<label for="amily2_jqyh_max_tokens">最大 Tokens: <span id="amily2_jqyh_max_tokens_value">4000</span></label>
<input type="range" id="amily2_jqyh_max_tokens" min="100" max="100000" step="100" value="4000">
<input type="number" class="text_pole" id="amily2_jqyh_max_tokens" min="100" max="100000" value="4000">
<label for="amily2_jqyh_temperature">温度: <span id="amily2_jqyh_temperature_value">0.7</span></label>
<input type="range" id="amily2_jqyh_temperature" min="0" max="2" step="0.1" value="0.7">
<input type="number" class="text_pole" id="amily2_jqyh_temperature" min="0" max="2" value="0.7">
</div>
</fieldset>
@@ -104,7 +104,7 @@
<select id="amily2_plotOpt_concurrentModel_select" class="text_pole" style="display: none;"></select>
</div>
<label for="amily2_plotOpt_concurrentMaxTokens">最大 Tokens: <span id="amily2_plotOpt_concurrentMaxTokens_value">8100</span></label>
<input type="range" id="amily2_plotOpt_concurrentMaxTokens" min="100" max="100000" step="100" value="8100">
<input type="number" class="text_pole" id="amily2_plotOpt_concurrentMaxTokens" min="100" max="100000" value="8100">
<div class="jqyh-button-row" style="grid-column: 1 / -1;">
<button id="amily2_plotOpt_concurrent_fetch_models" class="menu_button secondary" title="获取模型列表"><i class="fas fa-sync-alt"></i> 获取模型</button>
<button id="amily2_plotOpt_concurrent_test_connection" class="menu_button primary"><i class="fas fa-plug"></i> 测试连接</button>
@@ -142,7 +142,7 @@
</div>
<div class="inline-settings-grid">
<label for="amily2_plotOpt_concurrentWorldbookCharLimit">世界书最大字符数: <span id="amily2_plotOpt_concurrentWorldbookCharLimit_value">60000</span></label>
<input type="range" id="amily2_plotOpt_concurrentWorldbookCharLimit" min="1000" max="200000" step="1000" value="60000">
<input type="number" class="text_pole" id="amily2_plotOpt_concurrentWorldbookCharLimit" min="1000" max="200000" value="60000">
</div>
</div>
</fieldset>
@@ -236,9 +236,9 @@
<legend>上下文参数</legend>
<div class="inline-settings-grid">
<label for="amily2_opt_context_limit">上下文条数: <span id="amily2_opt_context_limit_value">10</span></label>
<input type="range" id="amily2_opt_context_limit" min="1" max="50" step="1" value="10">
<input type="number" class="text_pole" id="amily2_opt_context_limit" min="1" max="50" value="10">
<label for="amily2_opt_worldbook_char_limit">世界书最大字符数: <span id="amily2_opt_worldbook_char_limit_value">60000</span></label>
<input type="range" id="amily2_opt_worldbook_char_limit" min="1000" max="200000" step="1000" value="60000">
<input type="number" class="text_pole" id="amily2_opt_worldbook_char_limit" min="1000" max="200000" value="60000">
</div>
</fieldset>
<fieldset class="settings-group">

View File

@@ -183,11 +183,11 @@
<!-- 通用参数配置 -->
<div class="control-group">
<label for="amily2_ngms_max_tokens">最大令牌数:<span id="amily2_ngms_max_tokens_value">4000</span></label>
<input type="range" id="amily2_ngms_max_tokens" min="100" max="100000" step="100" value="4000" />
<input type="number" class="text_pole" id="amily2_ngms_max_tokens" min="100" max="100000" value="4000" />
</div>
<div class="control-group">
<label for="amily2_ngms_temperature">温度:<span id="amily2_ngms_temperature_value">0.7</span></label>
<input type="range" id="amily2_ngms_temperature" min="0" max="2" step="0.1" value="0.7" />
<input type="number" class="text_pole" id="amily2_ngms_temperature" min="0" max="2" value="0.7" />
</div>
<div class="control-group" style="display: flex; align-items: center; gap: 10px;">

View File

@@ -135,7 +135,7 @@
<div class="amily2_opt_settings_block">
<label for="table_worldbook_char_limit">世界书最大字符数: <span id="table_worldbook_char_limit_value">60000</span></label>
<input type="range" id="table_worldbook_char_limit" min="1000" max="200000" step="1000" value="60000">
<input type="number" class="text_pole" id="table_worldbook_char_limit" min="1000" max="200000" value="60000">
</div>
<hr>
@@ -328,12 +328,12 @@
<div class="amily2_opt_settings_block" style="margin-bottom: 10px;">
<label for="nccs-max-tokens">最大Token数: <span id="nccs-max-tokens-value">2000</span></label>
<input type="range" id="nccs-max-tokens" min="100" max="100000" step="100" value="2000">
<input type="number" class="text_pole" id="nccs-max-tokens" min="100" max="100000" value="2000">
</div>
<div class="amily2_opt_settings_block" style="margin-bottom: 10px;">
<label for="nccs-temperature">Temperature: <span id="nccs-temperature-value">0.7</span></label>
<input type="range" id="nccs-temperature" min="0" max="2" step="0.1" value="0.7">
<input type="number" class="text_pole" id="nccs-temperature" min="0" max="2" value="0.7">
</div>
<div class="amily2_opt_settings_block" style="margin-bottom: 10px;">

View File

@@ -76,11 +76,13 @@
<!-- 通用参数配置 -->
<div class="control-group">
<label for="amily2_sybd_max_tokens">最大令牌数:<span id="amily2_sybd_max_tokens_value">4000</span></label>
<input type="range" id="amily2_sybd_max_tokens" min="100" max="100000" step="100" value="4000" data-setting-key="sybdMaxTokens" data-type="integer" />
<input type="number" class="text_pole" id="amily2_sybd_max_tokens" min="100" max="100000" value="4000"
data-setting-key="sybdMaxTokens" data-type="integer" />
</div>
<div class="control-group">
<label for="amily2_sybd_temperature">温度:<span id="amily2_sybd_temperature_value">0.7</span></label>
<input type="range" id="amily2_sybd_temperature" min="0" max="2" step="0.1" value="0.7" data-setting-key="sybdTemperature" data-type="float" />
<input type="number" class="text_pole" id="amily2_sybd_temperature" min="0" max="2" value="0.7"
data-setting-key="sybdTemperature" data-type="float" />
</div>
<!-- 测试按钮组 - 水平排列 -->