From f164c09a2112b857b6eb4109190c0bcdb63bfce0 Mon Sep 17 00:00:00 2001 From: AnuGayan Date: Fri, 4 Oct 2024 14:56:14 +0530 Subject: [PATCH] Fix issue in Throttling policy for AI --- .../policy_templates/throttle_policy_template_ai_sub.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/policy_templates/throttle_policy_template_ai_sub.xml b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/policy_templates/throttle_policy_template_ai_sub.xml index 12abb66728d8..21b91e69ab08 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/policy_templates/throttle_policy_template_ai_sub.xml +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/policy_templates/throttle_policy_template_ai_sub.xml @@ -25,7 +25,7 @@ #if($quotaPolicy.getAiApiQuota().getTotalTokenCount() != 0) ifThenElse((sum(cast(map:get(propertiesMap,'TOTAL_TOKENS'),'long')) >= $quotaPolicy.getAiApiQuota().getTotalTokenCount()L), true, #end - false) + false #if($quotaPolicy.getAiApiQuota().getPromptTokenCount() != 0) ) #end