fix: broken model parameter

This commit is contained in:
KernelDeimos
2025-04-08 13:27:56 -04:00
parent fd910f36cf
commit 27fd7b3670
+4
View File
@@ -374,6 +374,10 @@ class AI{
requestParams[name] = userParams[name];
}
}
if ( requestParams.model === '' ) {
delete requestParams.model;
}
// Call the original chat.complete method
return await utils.make_driver_method(['messages'], 'puter-chat-completion', driver, 'complete', {