feat: option to regenerate the answer after switching model (#98)

This commit is contained in:
josc146
2023-03-31 20:04:38 +08:00
parent 04dc6e3f22
commit 9b37f358d4
9 changed files with 75 additions and 82 deletions
+11
View File
@@ -235,6 +235,17 @@ function GeneralPart({ config, updateConfig }) {
/>
{t('Lock scrollbar while answering')}
</label>
<label>
<input
type="checkbox"
checked={config.autoRegenAfterSwitchModel}
onChange={(e) => {
const checked = e.target.checked
updateConfig({ autoRegenAfterSwitchModel: checked })
}}
/>
{t('Regenerate the answer after switching model')}
</label>
<br />
</>
)