-
Notifications
You must be signed in to change notification settings - Fork 886
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
Calling openai.beta.chat.completions.runTools with gpt-4-32k returns error: "Additional properties are not allowed ('parsed', 'refusal' were unexpected)" #1161
Comments
I can confirm that the error is still happening with version 4.73.0. I experienced the same issue with both GPT-4 and GPT-4 32k. |
Thanks for the report and sorry for the delay, unfortunately I can't reproduce this issue. @d-m1 can you share an example snippet? I tried just changing the |
Hi @RobertCraigie, I used a gpt-4-32k model deployed with Azure OpenAI Services. Here is the code snippet that replicates the problem:
Running the above code using gpt-4-32k (or 1106-Preview) and using any OpenAI SDK version after 4.54.0 returns the following error (though it works with gpt-4o models):
|
I am getting a similar error with 3.5 as well. Error when processing chat-post request: 400 Additional properties are not allowed ('parsed' was unexpected) - 'messages.2'. Using latest, 4.76.0 |
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
I am using the example from https://github.com/openai/openai-node/blob/master/examples/tool-call-helpers.ts and using OpenAI node SDK v.4.69.0.
When I execute the example using gpt-4-32k model, I receive the following error:
BadRequestError: 400 Additional properties are not allowed ('parsed', 'refusal' were unexpected) - 'messages.2'
When I execute the example using gpt-4o model, the example works correctly.
I have been testing with different OpenAI node SDK versions. The last one where runTools actually works with this example is v.4.54.0. Once you upgrade to 4.55.x the error starts happening.
It could be related with the addition of Structured outputs that was added in 4.55.x.
I am using GPT models deployed in an Azure OpenAI service.
Maybe I should be doing something different to make it work with gpt-4-32k? (I haven't tested with
gpt-4-1106-preview
that is used in the example, but this should also work withgpt-4-32k
, right?).To Reproduce
https://github.com/openai/openai-node/blob/master/examples/tool-call-helpers.ts
Code snippets
No response
OS
macOS
Node version
v20.18.0
Library version
openai v.4.69.0
The text was updated successfully, but these errors were encountered: