From d89f000c026b69e2fd559ec8fa32f961e133af2d Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Fri, 9 Aug 2024 15:23:39 +0200 Subject: [PATCH] Revert "temporarily switch dust global to openAi (#6712)" This reverts commit 6579a381f90ba822a9854c51e2fcf3ab2eefbf20. --- front/lib/api/assistant/global_agents.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/front/lib/api/assistant/global_agents.ts b/front/lib/api/assistant/global_agents.ts index 7b3d3705ccd4..7bef824e49d4 100644 --- a/front/lib/api/assistant/global_agents.ts +++ b/front/lib/api/assistant/global_agents.ts @@ -863,12 +863,9 @@ function _getDustGlobalAgent( const pictureUrl = "https://dust.tt/static/systemavatar/dust_avatar_full.png"; const modelConfiguration = (() => { - // // If we can use Sonnet 3.5, we use it. Otherwise we use the default model. - // if (auth.isUpgraded() && isProviderWhitelisted(owner, "anthropic")) { - // return CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG; - // } - if (auth.isUpgraded() && isProviderWhitelisted(owner, "openai")) { - return GPT_4O_MODEL_CONFIG; + // If we can use Sonnet 3.5, we use it. Otherwise we use the default model. + if (auth.isUpgraded() && isProviderWhitelisted(owner, "anthropic")) { + return CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG; } return auth.isUpgraded() ? getLargeWhitelistedModel(owner)