change the default value of presystem to false
This commit is contained in:
parent
38b33a7030
commit
aae7cfe1a2
@ -57,7 +57,7 @@ class ChatCompletionBody(ModelConfigBody):
|
||||
None, description="Internal system name", min_length=1
|
||||
)
|
||||
presystem: bool = Field(
|
||||
True, description="Whether to insert default system prompt at the beginning"
|
||||
False, description="Whether to insert default system prompt at the beginning"
|
||||
)
|
||||
|
||||
model_config = {
|
||||
|
@ -579,7 +579,7 @@ const ChatPanel: FC = observer(() => {
|
||||
penalty_decay: commonStore.chatParams.penaltyDecay === defaultPenaltyDecay ? undefined : commonStore.chatParams.penaltyDecay,
|
||||
user_name: commonStore.activePreset?.userName || undefined,
|
||||
assistant_name: commonStore.activePreset?.assistantName || undefined,
|
||||
presystem: commonStore.activePreset?.presystem && undefined
|
||||
presystem: commonStore.activePreset?.presystem || undefined
|
||||
}),
|
||||
signal: chatSseController?.signal,
|
||||
onmessage(e) {
|
||||
|
@ -52,7 +52,7 @@ const defaultPreset: Preset = {
|
||||
stop: '',
|
||||
injectStart: '',
|
||||
injectEnd: '',
|
||||
presystem: true,
|
||||
presystem: false,
|
||||
userName: '',
|
||||
assistantName: ''
|
||||
};
|
||||
@ -275,7 +275,7 @@ const ChatPresetEditor: FC<{
|
||||
<Labeled flex spaceBetween label={t('Insert default system prompt at the beginning')}
|
||||
desc={t('Inside the model, there is a default prompt to improve the model\'s handling of common issues, but it may degrade the role-playing effect. You can disable this option to achieve a better role-playing effect.')}
|
||||
content={
|
||||
<Switch checked={editingPreset.presystem === undefined ? true : editingPreset.presystem}
|
||||
<Switch checked={editingPreset.presystem === undefined ? false : editingPreset.presystem}
|
||||
onChange={(e, data) => {
|
||||
setEditingPreset({
|
||||
presystem: data.checked
|
||||
|
Loading…
Reference in New Issue
Block a user