Using Structured Outputs throws body used already for: https://api.openai.com/v1/chat/completions
in 4.59.0
#1102
Labels
bug
Something isn't working
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
Since
4.59.0
, using structured outputs with Zod causes the following error:To Reproduce
You can reproduce by using the chat completions endpoint with structured outputs. I haven't tried this without Zod.
Using
this.client.chat.completions.create
withresponse_format: { type: "json_object" }
works just fine.This is a regression introduced in
v4.59.0
Code snippets
No response
OS
macOS
Node version
v20.13.1
Library version
4.59.0
The text was updated successfully, but these errors were encountered: