mirror of https://github.com/hwchase17/langchain
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.pull/7212/head
parent
6666e422c6
commit
ee1d488c03
Loading…
Reference in New Issue