From f46174a85587c53491caa30288ed31ba0a42426d Mon Sep 17 00:00:00 2001
From: Silin <silin.gao@epfl.ch>
Date: Sun, 10 Dec 2023 08:45:42 +0000
Subject: [PATCH] Update dummy_prompt_agent.py

---
 agents/dummy_prompt_agent.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agents/dummy_prompt_agent.py b/agents/dummy_prompt_agent.py
index b7e5ba0..01d4e20 100644
--- a/agents/dummy_prompt_agent.py
+++ b/agents/dummy_prompt_agent.py
@@ -47,7 +47,7 @@ class DummyPromptAgent(object):
         """
         # print(f"{len(test_data)=}, {test_data[0].keys()=}, {len(test_data[-1]['dialogue'])}")
 
-        if self.api_usage_count < self.api_limit and not final:
+        if self.api_usage_count < self.api_limit:  # dummy model does not use the label "final", which always uses up two times of API call
             self.api_usage_count += 1
             response = {
                 "use_api": True,                                    
-- 
GitLab