feat(gui): expose the streaming and debug options in the advanced page
These were command-line only. Add them to the settings dialog so the whole feature set is reachable without arguments: stream mode, window limit, segment limit, prefix-rollback token count, cold-start chunk count, max tokens per step, thread count, verbose logging and the model directory. The streaming group is grouped and greyed out for streaming-ONNX models, which only use the commit granularity. The backend fingerprint now includes them, so changing one restarts the recogniser; appearance changes still apply live. Also add a test-only --settings-tab so a specific page can be screenshotted. 设置「高级」页补上原来只有命令行才有的选项:流式策略/滑窗上限/单段最长/前缀回滚 token 数/冷启动 chunk 数/单段最多生成 token/线程数/详细日志/模型目录。流式那一组 单独成组,选了流式 ONNX 模型时置灰(它们只用「更新粒度」)。这些值纳入「后端指纹」, 改动会重启识别后端;外观类改动仍然即时生效。另加测试用 --settings-tab 以便给单个 页签截图。
This commit is contained in:
1 parent
d234b9658d
commit
6c04071bb5
8 files changed
+252
-25
No files matched your search
@@ -5,6 +5,7 @@
|
||||
class QComboBox;
|
||||
class QCheckBox;
|
||||
class QDoubleSpinBox;
|
||||
class QGroupBox;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QProgressBar;
|
||||
@@ -37,6 +38,7 @@ private:
|
||||
|
||||
void refreshModelTable();
|
||||
void refreshActiveCombo();
|
||||
void updateStreamGroupEnabled(); // 流式参数只在 llama 后端下可用
|
||||
void onDownload();
|
||||
void onVerify();
|
||||
void onDelete();
|
||||
@@ -73,6 +75,20 @@ private:
|
||||
QDoubleSpinBox * chunkSpin_ = nullptr;
|
||||
QSpinBox * threadsSpin_ = nullptr;
|
||||
|
||||
// 高级:流式参数(只影响 llama 后端)
|
||||
QGroupBox * streamGroup_ = nullptr;
|
||||
QLabel * streamNote_ = nullptr;
|
||||
QComboBox * streamModeCombo_ = nullptr;
|
||||
QDoubleSpinBox * windowSpin_ = nullptr;
|
||||
QDoubleSpinBox * segmentSpin_ = nullptr;
|
||||
QSpinBox * unfixedTokenSpin_ = nullptr;
|
||||
QSpinBox * unfixedChunkSpin_ = nullptr;
|
||||
QSpinBox * maxTokenSpin_ = nullptr;
|
||||
|
||||
// 高级:调试
|
||||
QCheckBox * verboseCheck_ = nullptr;
|
||||
QLineEdit * modelDirEdit_ = nullptr;
|
||||
|
||||
models::ModelDownloader * downloader_ = nullptr;
|
||||
bool firstRun_ = false;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user