Skip to content

Commit

Permalink
dev: enable tool use for Claude
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Jan 24, 2025
1 parent e9f6266 commit 1fde01a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/puter-js/src/modules/AI.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ class AI{
if ( options.model === 'groq' ) {
options.model = 'llama3-8b-8192';
}
if ( options.model === 'deepseek' ) {
options.model = 'deepseek-chat';
}

// map model to the appropriate driver
if (!options.model || options.model === 'gpt-4o' || options.model === 'gpt-4o-mini') {
Expand Down Expand Up @@ -270,6 +273,12 @@ class AI{
}else if(options.model === 'grok-beta') {
driver = 'xai';
}
else if(
options.model === 'deepseek-chat' ||
options.model === 'deepseek-reasoner'
){
driver = 'deepseek';
}

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

0 comments on commit 1fde01a

Please sign in to comment.