Add perfect answers to speaking
This commit is contained in:
@@ -132,7 +132,7 @@ def make_openai_instruct_call(model, message: str, token_count, fields_to_check,
|
||||
)["choices"][0]["text"]
|
||||
|
||||
if fields_to_check is None:
|
||||
return response
|
||||
return response.replace("\n\n", " ").strip()
|
||||
|
||||
processed_response = process_response(response, fields_to_check[0])
|
||||
if check_fields(processed_response, fields_to_check) is False and try_count < TRY_LIMIT:
|
||||
|
||||
Reference in New Issue
Block a user