fix: stream response (#3682)
* perf: supplement assistant empty response * check array * fix: stream response * fix: model config cannot set to null
This commit is contained in:
@@ -804,7 +804,7 @@ const ModelEditModal = ({
|
||||
value={JSON.stringify(getValues('defaultConfig'), null, 2)}
|
||||
onChange={(e) => {
|
||||
if (!e) {
|
||||
setValue('defaultConfig', undefined);
|
||||
setValue('defaultConfig', {});
|
||||
return;
|
||||
}
|
||||
try {
|
||||
@@ -1014,7 +1014,7 @@ const ModelEditModal = ({
|
||||
resize
|
||||
onChange={(e) => {
|
||||
if (!e) {
|
||||
setValue('defaultConfig', undefined);
|
||||
setValue('defaultConfig', {});
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user