Skip to content
Snippets Groups Projects
Commit f6f32511 authored by Silin's avatar Silin
Browse files

Update dummy_prompt_agent.py

parent 3ac61cd2
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ class DummyPromptAgent(object):
self.max_generated_token_per_call = 20 # Can be set by user as needed, can be different for each utterance and dialogue
self.api_usage_count = 0
def generate_responses(self, test_data: List[Dict], api_responses: List[str]) -> List[str]:
def generate_responses(self, test_data: List[Dict], api_responses: List[str], final=False) -> List[str]:
"""
You will be provided with a batch of upto 50 independent conversations
......@@ -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:
if self.api_usage_count < self.api_limit and not final:
self.api_usage_count += 1
response = {
"use_api": True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment