This repository was archived by the owner on Apr 30, 2026. It is now read-only.
feat: support zod v4 & v3#2186
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: ddcf963 The changes in this PR will be included in the next version bump. This PR includes changesets to release 62 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@llamaindex/autotool
@llamaindex/cloud
@llamaindex/community
@llamaindex/core
@llamaindex/env
@llamaindex/experimental
llamaindex
@llamaindex/node-parser
@llamaindex/readers
@llamaindex/tools
@llamaindex/wasm-tools
@llamaindex/workflow
@llamaindex/anthropic
@llamaindex/assemblyai
@llamaindex/aws
@llamaindex/clip
@llamaindex/cohere
@llamaindex/deepinfra
@llamaindex/deepseek
@llamaindex/discord
@llamaindex/excel
@llamaindex/fireworks
@llamaindex/google
@llamaindex/groq
@llamaindex/huggingface
@llamaindex/jinaai
@llamaindex/mistral
@llamaindex/mixedbread
@llamaindex/notion
@llamaindex/ollama
@llamaindex/openai
@llamaindex/perplexity
@llamaindex/portkey-ai
@llamaindex/replicate
@llamaindex/together
@llamaindex/vercel
@llamaindex/vllm
@llamaindex/voyage-ai
@llamaindex/xai
@llamaindex/astra
@llamaindex/azure
@llamaindex/chroma
@llamaindex/elastic-search
@llamaindex/firestore
@llamaindex/milvus
@llamaindex/mongodb
@llamaindex/pinecone
@llamaindex/postgres
@llamaindex/qdrant
@llamaindex/supabase
@llamaindex/upstash
@llamaindex/weaviate
commit: |
Contributor
size-limit report 📦
|
thucpn
commented
Sep 10, 2025
| done | ||
| - name: Install | ||
| run: npm add ${{ runner.temp }}/*.tgz | ||
| run: npm add ${{ runner.temp }}/*.tgz --legacy-peer-deps |
Collaborator
Author
There was a problem hiding this comment.
Use --legacy-peer-deps to temporarily fix peer conflict caused by the old @llamaindex/cloud when checking type in example (Run npm add /home/runner/work/_temp/*.tgz)
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @llama-flow/core@0.4.4
npm error Found: zod@4.1.5
npm error node_modules/zod
npm error zod@"^4.1.5" from the root project
npm error peer zod@"^3.25.76 || ^4" from @ai-sdk/openai@2.0.27
npm error node_modules/@ai-sdk/openai
npm error @ai-sdk/openai@"^2.0.27" from the root project
npm error 3 more (@llamaindex/core, ai, @ai-sdk/provider-utils)
npm error
npm error Could not resolve dependency:
npm error peerOptional zod@"^3.24.2" from @llama-flow/core@0.4.4
npm error node_modules/@llama-flow/core
npm error peer @llama-flow/core@"^0.4.1" from @llamaindex/cloud@4.1.2
npm error node_modules/@llamaindex/cloud
npm error @llamaindex/cloud@"file:../llamaindex-cloud-4.1.2.tgz" from the root project
npm error 1 more (llamaindex)
npm error
npm error Conflicting peer dependency: zod@3.25.76
npm error node_modules/zod
npm error peerOptional zod@"^3.24.2" from @llama-flow/core@0.4.4
npm error node_modules/@llama-flow/core
npm error peer @llama-flow/core@"^0.4.1" from @llamaindex/cloud@4.1.2
npm error node_modules/@llamaindex/cloud
npm error @llamaindex/cloud@"file:../llamaindex-cloud-4.1.2.tgz" from the root project
npm error 1 more (llamaindex)
Collaborator
Author
There was a problem hiding this comment.
This can be removed after #2145 is merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@llamaindex/core
@llamaindex/openai & @llamaindex/ollama
@llamaindex/tools
@llamaindex/workflow
zodToJsonSchemato be able to converthandoff tool@llamaindex/vercel
aito version 5 and@ai-sdk/openaito latest to compatible with zod4Related issue: (should be fixed after merging this PR)
llamaindex@^0.11.26#2175: caused by tool only accept zod schema v3canHandoffTo#2178: caused by using zod4 as peer and zodToJsonSchema didn't support convert zod4 schema to json schemaSandbox to try
https://stackblitz.com/~/github.com/thucpn/zod-llamaindex-sandbox