fix: usage capability in model editor

This commit is contained in:
Timothy Jaeryang Baek 2024-11-20 06:24:09 -08:00
parent 822a43c53d
commit db1a71c753

View File

@ -210,9 +210,6 @@
} }
}); });
capabilities = { ...capabilities, ...(model?.meta?.capabilities ?? {}) }; capabilities = { ...capabilities, ...(model?.meta?.capabilities ?? {}) };
if (model?.owned_by === 'openai') {
capabilities.usage = false;
}
if ('access_control' in model) { if ('access_control' in model) {
accessControl = model.access_control; accessControl = model.access_control;