Skip to content

Commit

Permalink
Revert "temporarily switch dust global to openAi (#6712)"
Browse files Browse the repository at this point in the history
This reverts commit 6579a38.
  • Loading branch information
fontanierh authored Aug 9, 2024
1 parent 1ddbeec commit d89f000
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions front/lib/api/assistant/global_agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d89f000

Please sign in to comment.