Skip to content

Fix: unify Zod version across workspaces + migrate OpenAI API to resp…#74

Open
dev107 wants to merge 1 commit intoGeorgeSG:masterfrom
dev107:fix/openai-zod-update
Open

Fix: unify Zod version across workspaces + migrate OpenAI API to resp…#74
dev107 wants to merge 1 commit intoGeorgeSG:masterfrom
dev107:fix/openai-zod-update

Conversation

@dev107
Copy link

@dev107 dev107 commented Nov 19, 2025

This PR fixes the build failure caused by two issues:

  1. Deprecated OpenAI API
    The code used beta.chat.completions.parse, which no longer exists in the current OpenAI SDK.
    Updated to the new responses.parse API, including the required input/message structure.

  2. Zod version mismatch across workspaces
    Several packages used different Zod versions, causing TS type incompatibilities during tsc -b.

    • Added a single Zod version via resolutions in the root package.json
    • Converted workspace Zod usage to peerDependencies + devDependencies for proper deduplication

Result

  • tsc -b runs cleanly
  • Docker build succeeds
  • OpenAI functionality is now aligned with the latest SDK
  • No unrelated files were modified

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.

1 participant