Skip to content

Commit

Permalink
enh: rework getLargeWhitelistedModel (#8159)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Oct 22, 2024
1 parent 0c9835d commit cea37f6
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 cea37f6

Please sign in to comment.