chore(examples): bump example models to GPT-6.2 Sol, Claude Haiku 5.5 and Sonnet 5.5

Merged
GL
9h ago
+18-12

Moves the examples and README snippets off gpt-5.1 and the Claude 4.5 models onto current ones. Each changed example was run against the live model APIs to confirm it still does the full tool-call loop.

ExampleBeforeAfter
openai-responses-integration.tsgpt-5.1gpt-6.2-sol
ai-sdk-integration.tsgpt-5.1gpt-6.2-sol
anthropic-integration.tsclaude-haiku-4-5-20251001claude-haiku-5-5
claude-agent-sdk-integration.tsclaude-sonnet-4-5-20250929claude-sonnet-5-5
openai-integration.ts (Chat Completions)gpt-5.1gpt-6.1-terra + reasoning_effort: 'none'

Why Chat Completions is on 6.1 Terra. The GPT-6.2 models reject function tools on /v1/chat/completions (Function tools with reasoning_effort are not supported for gpt-6.2-sol in /v1/chat/completions. To use function tools, use /v1/responses or set reasoning_effort to 'none'), and they also reject 'none'. gpt-6.1-terra and gpt-6-luna accept tools on Chat Completions with reasoning_effort: 'none', so the example uses Terra and points to the Responses example for tools plus reasoning.

Verification

Each example was run with tsx against the live model API. StackOne /accounts and /mcp were served by the repo's MSW mock, with an account that has workday_* tools.

ExampleModel servedResult
openai-integrationgpt-6.1-terratool call workday_list_workers, tool result sent back, final answer
openai-responses-integrationgpt-6.2-solfunction call returned
ai-sdk-integrationgpt-6.2-sol2-step loop, tool executed, final answer
anthropic-integrationclaude-haiku-5.5tool_use blocks returned
claude-agent-sdk-integrationclaude-sonnet-5.5both MCP tools called, final answer

oxfmt --check is clean, oxlint --type-aware --type-check reports 0 warnings, and vitest run passes (1319 passed, 5 skipped because they need dist/).

Requested by guillaume@stackone.com

Post-merge validation

No runtime change to the package: this touches examples, README and one JSDoc line. The repo's tests only run the examples against mocks, so the signal after merge is a manual pnpm run:example examples/<file>.ts with real keys.

šŸ¤– Generated with Claude Code


Summary by cubic

Updates the examples and README snippets from gpt-5.1 and the Claude 4.5 models to current ones (gpt-6.2-sol, claude-haiku-5-5, claude-sonnet-5-5), plus the matching JSDoc comment in src/tool.ts.

  • Chat Completions now uses gpt-6.1-terra with reasoning_effort: 'none' because the GPT-6.2 models reject function tools on /v1/chat/completions and don't accept 'none' either; the Responses API supports both, so that example points there.
  • Each example was run against the live model API and the full tool-call loop was verified.
  • No runtime code changes; vitest run passes and linting is clean.

Review gates and proof

Recorded by s2d2 on d697624.

gateresult
forgenot run
security_scannot run
codex_securitynot run
security_reviewnot run
code_reviewnot run
demoran

Proof is in the requester's thread: this repository is public.