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
|
None, description="Internal system name", min_length=1
|
||||||
)
|
)
|
||||||
presystem: bool = Field(
|
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 = {
|
model_config = {
|
||||||
|
@ -579,7 +579,7 @@ const ChatPanel: FC = observer(() => {
|
|||||||
penalty_decay: commonStore.chatParams.penaltyDecay === defaultPenaltyDecay ? undefined : commonStore.chatParams.penaltyDecay,
|
penalty_decay: commonStore.chatParams.penaltyDecay === defaultPenaltyDecay ? undefined : commonStore.chatParams.penaltyDecay,
|
||||||
user_name: commonStore.activePreset?.userName || undefined,
|
user_name: commonStore.activePreset?.userName || undefined,
|
||||||
assistant_name: commonStore.activePreset?.assistantName || undefined,
|
assistant_name: commonStore.activePreset?.assistantName || undefined,
|
||||||
presystem: commonStore.activePreset?.presystem && undefined
|
presystem: commonStore.activePreset?.presystem || undefined
|
||||||
}),
|
}),
|
||||||
signal: chatSseController?.signal,
|
signal: chatSseController?.signal,
|
||||||
onmessage(e) {
|
onmessage(e) {
|
||||||
|
@ -52,7 +52,7 @@ const defaultPreset: Preset = {
|
|||||||
stop: '',
|
stop: '',
|
||||||
injectStart: '',
|
injectStart: '',
|
||||||
injectEnd: '',
|
injectEnd: '',
|
||||||
presystem: true,
|
presystem: false,
|
||||||
userName: '',
|
userName: '',
|
||||||
assistantName: ''
|
assistantName: ''
|
||||||
};
|
};
|
||||||
@ -275,7 +275,7 @@ const ChatPresetEditor: FC<{
|
|||||||
<Labeled flex spaceBetween label={t('Insert default system prompt at the beginning')}
|
<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.')}
|
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={
|
content={
|
||||||
<Switch checked={editingPreset.presystem === undefined ? true : editingPreset.presystem}
|
<Switch checked={editingPreset.presystem === undefined ? false : editingPreset.presystem}
|
||||||
onChange={(e, data) => {
|
onChange={(e, data) => {
|
||||||
setEditingPreset({
|
setEditingPreset({
|
||||||
presystem: data.checked
|
presystem: data.checked
|
||||||
|
Loading…
Reference in New Issue
Block a user