Skip to content

Type instantiation is excessively deep and possibly infinite. #7160

@SirCameron

Description

@SirCameron

Description

Using:

zod: "^3.25.76"
@ai-sdk/openai: "^2.0.0-beta.5",
ai: "^5.0.0-beta.11",

I get the above typescript error when defining a tool.
I use the example ai-chatbot app as reference..

going to version 4 of ai and ai-sdk works fine.

Honestly, documentation for version 4 installation is totally unhelpful.

AI SDK Version

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions