fix: playground stop null

This commit is contained in:
jialin
2024-07-29 16:14:01 +08:00
parent 2587f10085
commit 64f60b48cf
2 changed files with 5 additions and 0 deletions
@@ -105,6 +105,7 @@ const MessageList: React.FC<MessageProps> = (props) => {
};
const submitMessage = async () => {
if (!parameters.model) return;
try {
setLoading(true);
setMessageId();
@@ -265,8 +265,12 @@ const ParamsSettings: React.FC<ParamsSettingsProps> = ({
<Form.Item<ParamsSettingsFormProps>
name="stop"
rules={[{ required: false }]}
normalize={(value) => {
return value || null;
}}
>
<SealInput.Input
allowClear
label="Stop Sequence"
description={intl.formatMessage({
id: 'playground.params.stop.tips'