Skip to content

Commit 27fd7b3

Browse files
committed
fix: broken model parameter
1 parent fd910f3 commit 27fd7b3

File tree

1 file changed

+4
-0
lines changed
  • src/puter-js/src/modules

1 file changed

+4
-0
lines changed

src/puter-js/src/modules/AI.js

+4
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ class AI{
374374
requestParams[name] = userParams[name];
375375
}
376376
}
377+
378+
if ( requestParams.model === '' ) {
379+
delete requestParams.model;
380+
}
377381

378382
// Call the original chat.complete method
379383
return await utils.make_driver_method(['messages'], 'puter-chat-completion', driver, 'complete', {

0 commit comments

Comments
 (0)