From bd3ff8fb72f7484d05691e1f77c6448049a53c5e Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Wed, 27 Sep 2023 13:23:41 +0200 Subject: [PATCH] fix: correctly enforce plan limits when getting agents (#1819) --- front/lib/api/assistant/configuration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/lib/api/assistant/configuration.ts b/front/lib/api/assistant/configuration.ts index 64cea4754851..af1dccb73137 100644 --- a/front/lib/api/assistant/configuration.ts +++ b/front/lib/api/assistant/configuration.ts @@ -160,7 +160,7 @@ export async function getAgentConfiguration( // Enforce plan limits: check if large models are allowed and act accordingly if ( !owner.plan.limits.largeModels && - !getSupportedModelConfig(model).largeModel + getSupportedModelConfig(model).largeModel ) { return null; }