Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Jan 5, 2026

Summary

  • Update @tanstack/ai from ^0.0.3 to ^0.2.0
  • Update @tanstack/ai-openai from ^0.0.3 to ^0.2.0
  • Migrate example to use new API: openai() -> openaiText('gpt-5')

Test plan

  • pnpm lint passes
  • pnpm test passes

Summary by cubic

Upgraded TanStack AI packages to 0.2.0 and updated the example to the new OpenAI adapter. Aligns with ENG-11754 to keep our integration compatible with the latest API.

  • Dependencies

    • @tanstack/ai -> ^0.2.0
    • @tanstack/ai-openai -> ^0.2.0
    • Updated workspace and lockfile
  • Migration

    • Replace openai() with openaiText('gpt-5')
    • Remove model from chat() calls (adapter sets it)
    • OPENAI_API_KEY env usage unchanged

Written for commit 0156bce. Summary will update on new commits.

Copilot AI review requested due to automatic review settings January 5, 2026 16:22
@ryoppippi ryoppippi requested a review from a team as a code owner January 5, 2026 16:22
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 5, 2026

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@276

commit: 5d11f69

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the @tanstack/ai packages from version 0.0.3 to 0.2.0 and migrates the example code to use the new API where the model is now specified as a parameter to the adapter function instead of in the chat options.

Key changes:

  • Updated @tanstack/ai and @tanstack/ai-openai dependencies to version 0.2.0
  • Migrated from openai() adapter to openaiText('gpt-5') with model specified in the adapter
  • Removed the model parameter from the chat() configuration

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
pnpm-workspace.yaml Updated catalog versions for @tanstack/ai packages from ^0.0.3 to ^0.2.0
pnpm-lock.yaml Updated resolved versions and dependency tree, removed @alcyone-labs/zod-to-json-schema peer dependency
examples/tanstack-ai-integration.ts Migrated API usage from openai() to openaiText('gpt-5') and removed separate model configuration
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

- Update @tanstack/ai from ^0.0.3 to ^0.2.0
- Update @tanstack/ai-openai from ^0.0.3 to ^0.2.0
- Migrate example to use new API: openai() -> openaiText('gpt-5')
- Remove deprecated 'model' parameter from chat() call
@ryoppippi ryoppippi force-pushed the chore/update-tanstack-ai branch from 5d11f69 to 0156bce Compare January 5, 2026 18:03
@ryoppippi ryoppippi merged commit 5df703d into main Jan 5, 2026
14 checks passed
@ryoppippi ryoppippi deleted the chore/update-tanstack-ai branch January 5, 2026 18:03
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.

2 participants