Fix failing tests

This commit is contained in:
Matt Zhou
2024-10-04 15:28:22 -07:00
parent 6bcec854d6
commit 87e4bc7bc4
2 changed files with 1 additions and 6 deletions

View File

@@ -371,7 +371,7 @@ def assert_inner_monologue_is_valid(message: Message) -> None:
"""
Helper function to check that the inner monologue is valid.
"""
invalid_chars = '(){}[]"'
invalid_chars = "(){}[]"
# Sometimes the syntax won't be correct and internal syntax will leak into message
invalid_phrases = ["functions", "send_message"]

View File

@@ -20,7 +20,6 @@ llm_config_dir = "configs/llm_model_configs"
def test_openai_gpt_4_returns_valid_first_message():
filename = os.path.join(llm_config_dir, "gpt-4.json")
response = check_first_response_is_valid_for_llm_endpoint(filename)
# Log out successful response
print(f"Got successful response from client: \n\n{response}")
@@ -29,7 +28,6 @@ def test_openai_gpt_4_returns_keyword():
keyword = "banana"
filename = os.path.join(llm_config_dir, "gpt-4.json")
response = check_response_contains_keyword(filename, keyword=keyword)
# Log out successful response
print(f"Got successful response from client: \n\n{response}")
@@ -37,7 +35,6 @@ def test_openai_gpt_4_returns_keyword():
def test_openai_gpt_4_uses_external_tool():
filename = os.path.join(llm_config_dir, "gpt-4.json")
response = check_agent_uses_external_tool(filename)
# Log out successful response
print(f"Got successful response from client: \n\n{response}")
@@ -45,7 +42,6 @@ def test_openai_gpt_4_uses_external_tool():
def test_openai_gpt_4_recall_chat_memory():
filename = os.path.join(llm_config_dir, "gpt-4.json")
response = check_agent_recall_chat_memory(filename)
# Log out successful response
print(f"Got successful response from client: \n\n{response}")
@@ -53,7 +49,6 @@ def test_openai_gpt_4_recall_chat_memory():
def test_openai_gpt_4_archival_memory_retrieval():
filename = os.path.join(llm_config_dir, "gpt-4.json")
response = check_agent_archival_memory_retrieval(filename)
# Log out successful response
print(f"Got successful response from client: \n\n{response}")