Skip to content

Commit 986dc9e

Browse files
brauliopfKernelDeimos
authored andcommitted
add temp and max_tokens to options request obj
1 parent 59da18f commit 986dc9e

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ class AI{
226226
if (settings.model) {
227227
options.model = settings.model;
228228
}
229+
if (settings.temperature) {
230+
options.temperature = settings.temperature;
231+
}
232+
if (settings.max_tokens) {
233+
options.max_tokens = settings.max_tokens;
234+
}
229235

230236
// convert to the correct model name if necessary
231237
if( options.model === 'claude-3-5-sonnet'){

0 commit comments

Comments
 (0)