-
Notifications
You must be signed in to change notification settings - Fork 495
feat: support zod v4 & v3 #2186
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
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: |
size-limit report 📦
|
| done | ||
| - name: Install | ||
| run: npm add ${{ runner.temp }}/*.tgz | ||
| run: npm add ${{ runner.temp }}/*.tgz --legacy-peer-deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed after #2145 is merged
marcusschiesser
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job!
@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