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

messages with role 'tool' must be a response to a preceeding message with 'tool_calls' #136

Closed
superlbr opened this issue May 11, 2024 · 2 comments

Comments

@superlbr
Copy link
Contributor

in researcher.tsx
{"error":{"message":"Invalid parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls'. (request id: 2024051116100984850589317176109) (request id: 2024051116100973706982837582869) (request id: 202405111610097110056956WoKcYSs) (request id: 20240511161006903012458ab9obA9U)","type":"invalid_request_error","param":"messages.[3].role","code":null}}

@miurla
Copy link
Owner

miurla commented May 13, 2024

This error occurs when it’s not properly called by the tool. Are you experiencing this without making any changes to the code? Please describe the steps to reproduce.

@superlbr
Copy link
Contributor Author

superlbr commented May 13, 2024

use model gpt-4 is ok. gpt-4-turbo sometimes error.
just add images and answers in research
choose a gpt model with version is better

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