Skip to content

Commit

Permalink
dev: add gemini to puter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Feb 14, 2025
1 parent 5513e1c commit 8828d03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/puter-js/src/modules/AI.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ class AI{
){
driver = 'deepseek';
}
else if(
options.model === 'gemini-1.5-flash' ||
options.model === 'gemini-2.0-flash'
){
driver = 'gemini';
}

// stream flag from settings
if(settings.stream !== undefined && typeof settings.stream === 'boolean'){
Expand Down

0 comments on commit 8828d03

Please sign in to comment.