fix: playground stop null
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user