Skip to content
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

fix: simplfy scheduleTask when type for Google compatibility #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stevenwu
Copy link

@stevenwu stevenwu commented Mar 7, 2025

When using Google models, the chat doesn't respond with the example tools.

Google Generative AI only supports a limited set of schema fields https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/control-generated-output#fields. It doesn't work with zod.union or zod.record. z.string().or(z.number()) as a replacement for z.union also doesn't work.

This update allows the template to work out of the box with Google models.

Fixes #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zod union incompatible with some AI SDK providers
1 participant