Repository navigation
chore(examples): bump example models to GPT-6.2 Sol, Claude Haiku 5.5 and Sonnet 5.5 - #416
Merged
Merged
Conversation
… 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>
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the examples and README snippets off
gpt-5.1and 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.openai-responses-integration.tsgpt-5.1gpt-6.2-solai-sdk-integration.tsgpt-5.1gpt-6.2-solanthropic-integration.tsclaude-haiku-4-5-20251001claude-haiku-5-5claude-agent-sdk-integration.tsclaude-sonnet-4-5-20250929claude-sonnet-5-5openai-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-terraandgpt-6-lunaaccept tools on Chat Completions withreasoning_effort: 'none', so the example uses Terra and points to the Responses example for tools plus reasoning.Verification
Each example was run with
tsxagainst the live model API. StackOne/accountsand/mcpwere served by the repo's MSW mock, with an account that hasworkday_*tools.workday_list_workers, tool result sent back, final answertool_useblocks returnedoxfmt --checkis clean,oxlint --type-aware --type-checkreports 0 warnings, andvitest runpasses (1319 passed, 5 skipped because they needdist/).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>.tswith real keys.🤖 Generated with Claude Code
Summary by cubic
Updates the examples and README snippets from
gpt-5.1and 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 insrc/tool.ts.gpt-6.1-terrawithreasoning_effort: 'none'because the GPT-6.2 models reject function tools on/v1/chat/completionsand don't accept'none'either; the Responses API supports both, so that example points there.vitest runpasses and linting is clean.Written for commit d697624. Summary will update on new commits.
Review gates and proof
Recorded by s2d2 on
d697624.Proof is in the requester's thread: this repository is public.