Skip to content

Conversation

@Sukitly
Copy link
Contributor

@Sukitly Sukitly commented Jul 5, 2023

  • 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:

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.

@vercel
Copy link

vercel bot commented Jul 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jul 5, 2023 6:57am

@dosubot dosubot bot added the bug Related to a bug, vulnerability, unexpected error with an existing feature label Jul 5, 2023
Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@hwchase17 hwchase17 merged commit ee1d488 into langchain-ai:master Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Related to a bug, vulnerability, unexpected error with an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants