feat: feature/1.6-Integrate custom model

This commit is contained in:
ningyv
2025-03-10 09:45:15 +08:00
parent 79b40ced37
commit ff157fbdd3
@@ -98,7 +98,7 @@ const AddModels = forwardRef<addModelsContentHandle, addModelContentProps>((prop
id: modelID
}
fetchData<BasicResponse<null>>('ai/provider/model', {
method: type === 'edit' ? 'DELETE' : 'POST',
method: type === 'edit' ? 'PUT' : 'POST',
eoParams: { provider: providerID },
eoBody: finalValue,
eoTransformKeys: ['defaultLlm']