Skip to content

Type instantiation is excessively deep and possibly infinite with zodResponseFormat on v4.86.1 #1356

@derdaele

Description

@derdaele

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

When using zodResponseFormat with a simple schema, I get a "Type instantiation is excessively deep and possibly infinite" error which freezes my editor.

Downgrading to 4.78.1 fixes it.

To Reproduce

Use the completions.parse api with a response_format set with zodResponseFormat.

Code snippets

OS

macOS

Node version

v20.11.0

Library version

v4.86.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions