mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
fix: rename the invalid function name of GoogleSerperResults Tool for OpenAIFunctionCall (#7176)
- Description: rename the invalid function name of GoogleSerperResults Tool for OpenAIFunctionCall - Tag maintainer: @hinthornw When I use the GoogleSerperResults in OpenAIFunctionCall agent, the following error occurs: ```shell openai.error.InvalidRequestError: 'Google Serrper Results JSON' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'functions.0.name' ``` So I rename the GoogleSerperResults's property "name" from "Google Serrper Results JSON" to "google_serrper_results_json" just like GoogleSerperRun's name: "google_serper", and it works. I guess this should be reasonable.
This commit is contained in:
parent
6666e422c6
commit
ee1d488c03
@ -44,7 +44,7 @@ class GoogleSerperResults(BaseTool):
|
|||||||
"""Tool that has capability to query the Serper.dev Google Search API
|
"""Tool that has capability to query the Serper.dev Google Search API
|
||||||
and get back json."""
|
and get back json."""
|
||||||
|
|
||||||
name = "Google Serrper Results JSON"
|
name = "google_serrper_results_json"
|
||||||
description = (
|
description = (
|
||||||
"A low-cost Google Search API."
|
"A low-cost Google Search API."
|
||||||
"Useful for when you need to answer questions about current events."
|
"Useful for when you need to answer questions about current events."
|
||||||
|
Loading…
Reference in New Issue
Block a user