Skip to content

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

Merged
glebedel merged 1 commit into
mainfrom
s2d2/bump-example-models
Nov 19, 2026
Merged

glebedel merged 1 commit into
mainfrom
s2d2/bump-example-models

Conversation

@glebedel

@glebedel glebedel commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

Example Before After
openai-responses-integration.ts gpt-5.1 gpt-6.2-sol
ai-sdk-integration.ts gpt-5.1 gpt-6.2-sol
anthropic-integration.ts claude-haiku-4-5-20251001 claude-haiku-5-5
claude-agent-sdk-integration.ts claude-sonnet-4-5-20250929 claude-sonnet-5-5
openai-integration.ts (Chat Completions) gpt-5.1 gpt-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.

Example Model served Result
openai-integration gpt-6.1-terra tool call workday_list_workers, tool result sent back, final answer
openai-responses-integration gpt-6.2-sol function call returned
ai-sdk-integration gpt-6.2-sol 2-step loop, tool executed, final answer
anthropic-integration claude-haiku-5.5 tool_use blocks returned
claude-agent-sdk-integration claude-sonnet-5.5 both 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.

Written for commit d697624. Summary will update on new commits.

View guided diff Turn on auto-fix

Review gates and proof

Recorded by s2d2 on d697624.

gate result
forge not run
security_scan not run
codex_security not run
security_review not run
code_review not run
demo ran

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

… and Sonnet 5.5

- Responses API and AI SDK examples: gpt-5.1 -> gpt-6.2-sol
- Anthropic example: claude-haiku-4-5-20251001 -> claude-haiku-5-5
- Claude Agent SDK example: claude-sonnet-4-5-20250929 -> claude-sonnet-5-5
- Chat Completions example: gpt-5.1 -> gpt-6.1-terra with reasoning_effort 'none'.
  The GPT-6.2 models reject function tools on /v1/chat/completions ("use
  /v1/responses or set reasoning_effort to 'none'", and they do not accept
  'none'), so the Chat Completions example uses the newest model that does.
- README snippets and the toClaudeAgentSdk doc comment follow the examples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
@glebedel
glebedel requested a review from a team as a code owner November 19, 2026 03:40
@glebedel glebedel self-assigned this Nov 19, 2026
@pkg-pr-new

pkg-pr-new Bot commented Nov 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: d697624

Comment thread examples/anthropic-integration.ts Resolved
@glebedel
glebedel merged commit 0ae0803 into main Nov 19, 2026
20 checks passed
@glebedel
glebedel deleted the s2d2/bump-example-models branch November 19, 2026 04:02
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