mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-24 09:04:19 +01:00
🧪3️⃣ test: level 3 and 4
This commit is contained in:
@@ -519,8 +519,9 @@ Test scenario:
|
||||
setattr(self.microservice_specification, refinement_type, final)
|
||||
break
|
||||
elif agent_question:
|
||||
messages.append(AIMessage(content=agent_question))
|
||||
user_input = self.get_user_input(pm, agent_question)
|
||||
question_parsed = json.loads(agent_question)['question']
|
||||
messages.append(AIMessage(content=question_parsed))
|
||||
user_input = self.get_user_input(pm, question_parsed)
|
||||
else:
|
||||
if num_parsing_tries > 2:
|
||||
raise self.TaskRefinementException()
|
||||
|
||||
@@ -85,7 +85,7 @@ def test_generation_level_3(tmpdir):
|
||||
"""
|
||||
os.environ['VERBOSE'] = 'true'
|
||||
generator = Generator(
|
||||
f'''Given an audio file of speech like https://www.signalogic.com/melp/EngSamples/Orig/ENG_M.wav,
|
||||
f'''Given an audio file (1min) of speech like https://www.signalogic.com/melp/EngSamples/Orig/ENG_M.wav,
|
||||
get convert it to text using the following api:
|
||||
import requests
|
||||
url = "https://transcribe.whisperapi.com"
|
||||
|
||||
Reference in New Issue
Block a user