Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def web_search(query: str) -> str:
|
|
| 101 |
return f"Search results for '{query}' : {result}."
|
| 102 |
|
| 103 |
@tool
|
| 104 |
-
def wikipedia_tool(query: str, llm: Optional[
|
| 105 |
"""
|
| 106 |
Searches Wikipedia for the given query and uses the LLM to extract a direct answer.
|
| 107 |
Args:
|
|
|
|
| 101 |
return f"Search results for '{query}' : {result}."
|
| 102 |
|
| 103 |
@tool
|
| 104 |
+
def wikipedia_tool(query: str, llm: Optional[callable[[str], str]] =openrouter_inference) -> str:
|
| 105 |
"""
|
| 106 |
Searches Wikipedia for the given query and uses the LLM to extract a direct answer.
|
| 107 |
Args:
|