community[patch]: Update bing results tool name (#16395)

Make BingSearchResults tool name OpenAI functions compatible (can't have
spaces).

Fixes #16368
This commit is contained in:
Bagatur 2024-01-22 11:11:03 -08:00 committed by GitHub
parent de209af533
commit 85e8423312
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ class BingSearchRun(BaseTool):
class BingSearchResults(BaseTool):
"""Tool that queries the Bing Search API and gets back json."""
name: str = "Bing Search Results JSON"
name: str = "bing_search_results_json"
description: str = (
"A wrapper around Bing Search. "
"Useful for when you need to answer questions about current events. "