mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
add stream flag to the chat()
method of puter.ai
This commit is contained in:
parent
3bface8c66
commit
6135054b3b
@ -236,6 +236,11 @@ class AI{
|
||||
driver = 'together-ai';
|
||||
}
|
||||
|
||||
// stream flag from settings
|
||||
if(settings.stream !== undefined && typeof settings.stream === 'boolean'){
|
||||
options.stream = settings.stream;
|
||||
}
|
||||
|
||||
// Call the original chat.complete method
|
||||
return await utils.make_driver_method(['messages'], 'puter-chat-completion', driver, 'complete', {
|
||||
test_mode: testMode ?? false,
|
||||
|
Loading…
Reference in New Issue
Block a user