Skip to content

Commit a4a7127

Browse files
yiboyasssOliverBryant
authored andcommitted
fix: request bug
1 parent d21c542 commit a4a7127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xinference/ui/web/ui/src/scenes/launch_model/components/addModelDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const AddModelDialog = ({ open, onClose, onUpdateList }) => {
8888
const res = await fetch(endPoint + '/v1/models/add', {
8989
method: 'POST',
9090
headers: { 'Content-Type': 'application/json' },
91-
body: JSON.stringify(modelJson),
91+
body: JSON.stringify({ model_type: modelType, model_json: modelJson }),
9292
})
9393
const rawText = await res.text().catch(() => '')
9494
if (!res.ok) {

0 commit comments

Comments
 (0)