Merged
Conversation
Co-authored-by: punitsai36 <punitsai36@gmail.com>
Co-authored-by: punitsai36 <punitsai36@gmail.com>
Co-authored-by: punitsai36 <punitsai36@gmail.com>
Co-authored-by: punitsai36 <punitsai36@gmail.com>
This update includes the latest version of the OpenAI SDK, ensuring compatibility and access to new features. Co-authored-by: punitsai36 <punitsai36@gmail.com>
Co-authored-by: punitsai36 <punitsai36@gmail.com>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: punitsai36 <punitsai36@gmail.com>
- Synced bun.lock with @ai-sdk/openai@^2.0.59 - Resolved lockfile frozen error
- Downgrade zod from v4.1.11 to v3.23.8 for wrangler compatibility - Replace z.enum() with z.nativeEnum() for TypeScript enums - Fix z.discriminatedUnion nesting in PlannerContextSchema - Fix error message syntax in filters (error -> invalid_type_error) - Fix PROXY_ENABLED default ordering with transform - Fix z.url() to z.string().url() for zod v3 - Update script to handle null blueprint return values - Clean install node_modules to resolve esbuild conflicts This fixes build errors caused by incompatibility between wrangler 4 and zod v4, specifically with enum handling in miniflare.
- Bump @ai-sdk/openai to v2.0.62 in package.json and bun.lock - Update @ai-sdk/provider-utils to v3.0.16 for compatibility - Refactor email rendering code for better readability - Clean up schema definitions in PlannerContextSchema and FlightSegmentSchema for improved clarity
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix AI-generated flight alerts showing 0 flights and blank emails by configuring the AI provider, adding the API key to the worker environment, and ensuring fallback rendering always displays flight data.
The previous implementation failed to properly initialize the AI provider with the necessary API key in the worker context, and its fallback mechanism replaced all content with a generic message instead of showing available flight details. This PR addresses these issues to ensure robust and informative email alerts, updates the AI model to
openai/gpt-5-mini, and centralizes environment variable access viaenv.ts.