Skip to content

Commit

Permalink
enh: rework getLargeWhitelistedModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Oct 22, 2024
1 parent 5b74107 commit 26f5e37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/src/front/lib/assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26f5e37

Please sign in to comment.