mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-13 08:30:55 -06:00
dev: enable tool use for Claude
This commit is contained in:
@@ -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') {
|
||||
@@ -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'){
|
||||
|
||||
Reference in New Issue
Block a user