Skip to content

Commit 5df703d

Browse files
authored
chore(deps): update @tanstack/ai packages to 0.2.0 ENG-11754 (#276)
- 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
1 parent 6492f57 commit 5df703d

File tree

3 files changed

+23
-69
lines changed

3 files changed

+23
-69
lines changed

examples/tanstack-ai-integration.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import assert from 'node:assert';
1010
import process from 'node:process';
1111
import { chat } from '@tanstack/ai';
12-
import { openai } from '@tanstack/ai-openai';
12+
import { openaiText } from '@tanstack/ai-openai';
1313
import { z } from 'zod';
1414
import { StackOneToolSet } from '@stackone/ai';
1515

@@ -52,10 +52,9 @@ const tanstackAiIntegration = async (): Promise<void> => {
5252

5353
// Use TanStack AI chat with the tool
5454
// The adapter reads OPENAI_API_KEY from the environment automatically
55-
const adapter = openai();
55+
const adapter = openaiText('gpt-5');
5656
const stream = chat({
5757
adapter,
58-
model: 'gpt-5.1',
5958
messages: [
6059
{
6160
role: 'user',

pnpm-lock.yaml

Lines changed: 19 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ catalogs:
3030
zod: ^4.1.13
3131
examples:
3232
'@anthropic-ai/claude-agent-sdk': ^0.1.67
33-
'@tanstack/ai': ^0.0.3
34-
'@tanstack/ai-openai': ^0.0.3
33+
'@tanstack/ai': ^0.2.0
34+
'@tanstack/ai-openai': ^0.2.0
3535
peer:
3636
'@anthropic-ai/sdk': ^0.52.0
3737
ai: '>=5.0.108 <7.0.0'

0 commit comments

Comments
 (0)