Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid_request_error when using any of the tools #473

Open
ChrisBurgdorff opened this issue Nov 5, 2024 · 1 comment
Open

invalid_request_error when using any of the tools #473

ChrisBurgdorff opened this issue Nov 5, 2024 · 1 comment

Comments

@ChrisBurgdorff
Copy link

I cloned the project, installed dependencies, filled out the env vars, started the relay server and the React frontend.

Everything seems to work fine until it tries to access one of the tools. If I say "What is the weather in Chicago?" (or any location) it will output the following in the logs:

{
  "type": "error",
  "event_id": "event_AQJyeAN9SM0lxdiYtgtXf",
  "error": {
    "type": "invalid_request_error",
    "code": null,
    "message": "Conversation already has an active response",
    "param": null,
    "event_id": null
  }
}

And say something to the effect "I am having trouble accessing the weather information right now".

The strange thing is the conversation output window on the bottom actually displays a successful result from the weather API call as "function call output". Here is an example:

t
{"latitude":40.710335,"longitude":-73.99309,"generationtime_ms":0.02205371856689453,"utc_offset_seconds":0,"timezone":"GMT","timezone_abbreviation":"GMT","elevation":32,"current_units":{"time":"iso8601","interval":"seconds","temperature_2m":"°C","wind_speed_10m":"km/h"},"current":{"time":"2024-11-05T19:45","interval":900,"temperature_2m":19.9,"wind_speed_10m":19.9}}

So it's calling the function, getting the weather from the API, returning it, but somehow the voice agent does not recognize this.

Anyway this is running locally on Chrome (latest version) on a Windows 11 machine, but I think it's a problem with the code and not on my end.

If anyone else has encountered this or has a solution let me know please.

@marcelvanworkum
Copy link

Possibly related to #474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants