Skip to content
Snippets Groups Projects
Unverified Commit 3bdf1a43 authored by Mingchen Zhuge's avatar Mingchen Zhuge Committed by GitHub
Browse files

Merge pull request #7 from metauto-ai/fix_test_run

a quick fix
......@@ -8,6 +8,10 @@ def get_combine_materials(materials: Dict[str, Any], avoid_vague=True) -> str:
for key, value in materials.items():
if "No useful information from WebSearch" in value:
continue
if isinstance(value, list):
value = "\n".join(value)
if not (isinstance(value, str) and isinstance(key, str)):
continue
value = value.strip("\n").strip()
if key != 'task' and value:
question += f"\n\nReference information for {key}:" + \
......
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