From cea37f6fadb154cf6590cb5be049300e8fcaa497 Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Tue, 22 Oct 2024 15:02:32 +0200 Subject: [PATCH] enh: rework getLargeWhitelistedModel (#8159) Co-authored-by: Henry Fontanier --- types/src/front/lib/assistant.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/src/front/lib/assistant.ts b/types/src/front/lib/assistant.ts index 8531278d4745..57a6768f6f2a 100644 --- a/types/src/front/lib/assistant.ts +++ b/types/src/front/lib/assistant.ts @@ -63,11 +63,11 @@ export function getSmallWhitelistedModel( export function getLargeWhitelistedModel( owner: WorkspaceType ): ModelConfigurationType | null { - if (isProviderWhitelisted(owner, "openai")) { - return GPT_4_TURBO_MODEL_CONFIG; - } if (isProviderWhitelisted(owner, "anthropic")) { - return CLAUDE_3_OPUS_DEFAULT_MODEL_CONFIG; + return CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG; + } + if (isProviderWhitelisted(owner, "openai")) { + return GPT_4O_MODEL_CONFIG; } if (isProviderWhitelisted(owner, "google_ai_studio")) { return GEMINI_PRO_DEFAULT_MODEL_CONFIG;