Skip to content

feat: AI package updates - #1300

Closed
Linell wants to merge 1 commit into
mainfrom
feat/ai-package-updates
Closed

feat: AI package updates#1300
Linell wants to merge 1 commit into
mainfrom
feat/ai-package-updates

Conversation

@Linell

@Linell Linell commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a script for semi-automatically updating the different models from various providers
  • Update existing lint issues

Related

@changeset-bot

changeset-bot Bot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9377643

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@inngest/ai Patch

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.mjs script to fetch model identifiers from OpenAI/Anthropic SDK typings and merge them into local Model unions.
  • 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.

Comment thread packages/ai/scripts/update-models.mjs
Comment thread packages/ai/scripts/update-models.mjs
* Add a script for semi-automatically updating the different models
  from various providers
* Update existing lint issues
@Linell
Linell force-pushed the feat/ai-package-updates branch from a0863db to 9377643 Compare February 10, 2026 00:48
@Linell Linell closed this Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants