Skip to content

Commit

Permalink
Merge pull request #233 from fredster33/patch-1
Browse files Browse the repository at this point in the history
wikipedia_search: Change user agent to comply with Wikimedia policy
  • Loading branch information
NeonN3mesis committed Oct 11, 2023
2 parents 04b5324 + 6b02ddb commit 84cdb22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/autogpt_plugins/wikipedia_search/wikipedia_search.py
Expand Up @@ -30,10 +30,7 @@ def _wikipedia_search(query: str, num_results: int = 5) -> str | list[str]:
session.headers.update(
{
"User-Agent": (
"Mozilla/5.0 (Windows NT 10.0; "
"Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/"
"112.0.5615.49 Safari/537.36"
"AutoGPT wikipedia_search plugin (https://news.agpt.co/contact/) Requests"
)
}
)
Expand Down

0 comments on commit 84cdb22

Please sign in to comment.