mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-29 12:50:59 +00:00
add temp and max_tokens to options request obj
This commit is contained in:
committed by
Eric Dubé
parent
59da18f2a3
commit
986dc9ea1f
@@ -226,6 +226,12 @@ class AI{
|
||||
if (settings.model) {
|
||||
options.model = settings.model;
|
||||
}
|
||||
if (settings.temperature) {
|
||||
options.temperature = settings.temperature;
|
||||
}
|
||||
if (settings.max_tokens) {
|
||||
options.max_tokens = settings.max_tokens;
|
||||
}
|
||||
|
||||
// convert to the correct model name if necessary
|
||||
if( options.model === 'claude-3-5-sonnet'){
|
||||
|
||||
Reference in New Issue
Block a user