feat: AI package updates - #1300
Closed
Linell wants to merge 1 commit into
Closed
Conversation
🦋 Changeset detectedLatest commit: 9377643 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds automation to keep AI provider model type unions up to date, and applies lint/format fixes across tests and type definitions.
Changes:
- Added a
packages/ai/scripts/update-models.mjsscript to fetch model identifiers from OpenAI/Anthropic SDK typings and merge them into localModelunions. - Expanded OpenAI/OpenAI Responses and Anthropic model string-literal unions to include many additional model IDs (including
gpt-5.1/gpt-5.2). - Added a scheduled GitHub Action to run the updater and open an automated PR; applied minor lint formatting fixes in tests/types.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/ai/src/models/openai.ts | Expands OpenAi.Model union with many additional OpenAI model identifiers. |
| packages/ai/src/models/openai-responses.ts | Expands OpenAiResponses.Model union similarly for Responses adapter. |
| packages/ai/src/adapters/anthropic.ts | Expands AnthropicAiAdapter.Model union with additional Anthropic model identifiers. |
| packages/ai/scripts/update-models.mjs | New updater script to fetch provider SDK typings from unpkg and merge model literals into local unions; writes a changeset on changes. |
| .github/workflows/update-models.yml | New scheduled workflow to run the updater and create an automated PR. |
| packages/ai/package.json | Adds update-models npm script. |
| .changeset/update-ai-models.md | Adds changeset for the model type updates. |
| packages/ai/test/unit/openai-responses.unit.test.ts | Lint/format adjustments in unit test. |
| packages/ai/test/smoke/openai-responses.smoke.test.ts | Lint/format adjustments in smoke test. |
| packages/ai/src/adapter.ts | Minor lint/format adjustments (trailing commas in types). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* Add a script for semi-automatically updating the different models from various providers * Update existing lint issues
Linell
force-pushed
the
feat/ai-package-updates
branch
from
February 10, 2026 00:48
a0863db to
9377643
Compare
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.
Summary
Related
model identifiers
model identifiers
(EXE-961)