fix: some fields value do not be updated from default spec
This commit is contained in:
@@ -145,6 +145,7 @@ const useSetChunkFetch = () => {
|
|||||||
try {
|
try {
|
||||||
const chunk = decoder.decode(value, { stream: true });
|
const chunk = decoder.decode(value, { stream: true });
|
||||||
bufferManager.add(chunk);
|
bufferManager.add(chunk);
|
||||||
|
bufferManager.updateSpeed(chunk.length);
|
||||||
throttledCallback();
|
throttledCallback();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// handle error
|
// handle error
|
||||||
|
|||||||
@@ -25,7 +25,13 @@ import ColumnWrapper from './column-wrapper';
|
|||||||
import CompatibilityAlert from './compatible-alert';
|
import CompatibilityAlert from './compatible-alert';
|
||||||
import DataForm from './data-form';
|
import DataForm from './data-form';
|
||||||
|
|
||||||
const pickFieldsFromSpec = ['backend_version', 'backend_parameters', 'env'];
|
const pickFieldsFromSpec = [
|
||||||
|
'backend_version',
|
||||||
|
'backend_parameters',
|
||||||
|
'env',
|
||||||
|
'size',
|
||||||
|
'quantization'
|
||||||
|
];
|
||||||
|
|
||||||
type AddModalProps = {
|
type AddModalProps = {
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user