Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration-tests/cloudflare-workers/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@openai/agents-extensions": "latest"
},
"devDependencies": {
"typescript": "^5.5.2",
"typescript": "^5.9.3",
"wrangler": "^4.18.0"
}
}
4 changes: 2 additions & 2 deletions integration-tests/node-ai-sdk-v2-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"@ai-sdk/provider": "^2.0.0",
"@openai/agents": "latest",
"@openai/agents-extensions": "latest",
"zod": "^4.0.0"
"zod": "^4.6.5"
},
"devDependencies": {
"@types/node": "^22.19.6",
"@types/node": "^22.20.5",
"typescript": "^5.9.3"
}
}
7 changes: 6 additions & 1 deletion integration-tests/node-ai-sdk-v2-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ export async function main() {
execute: async ({ city }) => `The weather in ${city} is sunny`,
});

const model = openai('gpt-5.2');
if (model.specificationVersion !== 'v2') {
throw new Error('Expected the AI SDK v2 fixture to use a v2 model.');
}

const agent = new Agent({
name: 'AI SDK v2 Test Agent',
instructions:
'You are a helpful assistant. When you need to get the weather, you must use tools.',
tools: [getWeatherTool],
model: aisdk(openai('gpt-5.2')),
model: aisdk(model),
modelSettings: {
providerData: {
providerOptions: {
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/node-ai-sdk-v3-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"start": "node dist/index.js"
},
"dependencies": {
"@ai-sdk/openai": "^3.0.0",
"@ai-sdk/openai": "^3.0.124",
"@ai-sdk/provider": "^3.0.0",
"@openai/agents": "latest",
"@openai/agents-extensions": "latest",
"zod": "^4.0.0"
"zod": "^4.6.5"
},
"devDependencies": {
"@types/node": "^22.19.6",
"@types/node": "^22.20.5",
"typescript": "^5.9.3"
}
}
7 changes: 6 additions & 1 deletion integration-tests/node-ai-sdk-v3-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ export async function main() {
execute: async ({ city }) => `The weather in ${city} is sunny`,
});

const model = openai('gpt-5.2');
if (model.specificationVersion !== 'v3') {
throw new Error('Expected the AI SDK v3 fixture to use a v3 model.');
}

const agent = new Agent({
name: 'AI SDK v3 Test Agent',
instructions:
'You are a helpful assistant. When you need to get the weather, you must use tools.',
tools: [getWeatherTool],
model: aisdk(openai('gpt-5.2')),
model: aisdk(model),
modelSettings: {
providerData: {
providerOptions: {
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/node-ai-sdk-v4-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"start": "node dist/index.js"
},
"dependencies": {
"@ai-sdk/provider": "^4.0.0",
"@ai-sdk/provider": "^4.0.21",
"@openai/agents": "latest",
"@openai/agents-extensions": "latest",
"@openrouter/ai-sdk-provider": "^3.0.0",
"ai": "^7.0.0",
"zod": "^4.0.0"
"zod": "^4.6.5"
},
"devDependencies": {
"@types/node": "^22.19.6",
"@types/node": "^22.20.5",
"typescript": "^5.9.3"
}
}
11 changes: 8 additions & 3 deletions integration-tests/node-ai-sdk-v4-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,18 @@ const getWeatherTool = tool({
execute: async ({ city }) => `${city} is sunny.`,
});

const model = openrouter('openai/gpt-6-astra', {
reasoning: { effort: 'low' },
});
if (model.specificationVersion !== 'v4') {
throw new Error('Expected the AI SDK v4 fixture to use a v4 model.');
}

const agent = new Agent({
name: 'AI SDK v4 Test Agent',
instructions: 'Use get_weather to answer the question.',
tools: [getWeatherTool],
model: aisdk(
openrouter('openai/gpt-6-astra', { reasoning: { effort: 'low' } }),
),
model: aisdk(model),
});

try {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/node-sdk-behavior/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"@openai/agents": "latest",
"@openai/agents-openai": "latest",
"openai": "^7.2.0",
"zod": "^4.0.0"
"openai": "^7.27.0",
"zod": "^4.6.5"
}
}
2 changes: 1 addition & 1 deletion integration-tests/node-zod4-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"zod": "^4"
},
"devDependencies": {
"@types/node": "^22.19.6",
"@types/node": "^22.20.5",
"typescript": "^5.9.3"
}
}
2 changes: 1 addition & 1 deletion integration-tests/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Node.js', () => {
expect(stdout).toContain('codex thread started:');
expect(stdout).toContain('codex turn completed, usage:');
expect(stdout).toMatch(
/\[CODEX_TOOL_RESPONSE\].*\^0\.147\.0.*\[\/CODEX_TOOL_RESPONSE\]/s,
/\[CODEX_TOOL_RESPONSE\].*\^0\.160\.0.*\[\/CODEX_TOOL_RESPONSE\]/s,
);
expect(stdout).toContain('[CODEX_RESPONSE]');
},
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"dependencies": {
"@openai/agents": "latest",
"@openai/agents-extensions": "latest",
"@openai/codex-sdk": "^0.147.0",
"@openai/codex-sdk": "^0.160.0",
"typescript": "^5.9.3",
"ws": "^8.18.1",
"zod": "^4.0.0"
"ws": "^8.22.0",
"zod": "^4.6.5"
}
}
10 changes: 5 additions & 5 deletions integration-tests/vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
},
"dependencies": {
"@openai/agents": "latest",
"react": "^19.1.0",
"react": "^19.3.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@eslint/js": "^9.25.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^4.4.1",
"globals": "^16.0.0",
"typescript": "~5.8.3",
"typescript-eslint": "^8.30.1",
"typescript": "~5.9.3",
"typescript-eslint": "^8.71.0",
"vite": "^6.3.5"
}
}
Loading