mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-28 01:32:17 +00:00
fix: use [] default for queries instead of {}
This commit is contained in:
parent
9b4f5bfefc
commit
608d46f427
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ def build_web_tool_use(item: Any) -> Tuple[Dict[str, Any], Dict[str, str]]:
|
|||
input_dict = {"url": action.get("url", "")}
|
||||
else:
|
||||
name = "web_search"
|
||||
queries = action.get("queries", {})
|
||||
queries = action.get("queries") or []
|
||||
if queries:
|
||||
query = "\n".join(queries)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue