Skip to content

feat: SDK upgrade to 0.2.74 + model selection#14

Merged
bupao merged 4 commits intomainfrom
feat/model-selection
Mar 13, 2026
Merged

feat: SDK upgrade to 0.2.74 + model selection#14
bupao merged 4 commits intomainfrom
feat/model-selection

Conversation

@bupao
Copy link
Contributor

@bupao bupao commented Mar 13, 2026

Summary

  • Upgrade @anthropic-ai/claude-agent-sdk from 0.2.34 to 0.2.74 (memory leak fix, HTTP MCP transport fix, session persistence fix, Sonnet 4.6 support)
  • Add model selection: CLAUDE_MODEL / CLAUDE_FALLBACK_MODEL env vars + per-request model param in POST /chat. Precedence: per-request > env var > CLI default. Response includes actual model used.
  • Bump version to 1.2.16

Test plan

  • npm run build — clean compile
  • npm test — 53 tests pass
  • npm run format:check — clean
  • Docker build + live integration test:
    • POST /chat default model → claude-sonnet-4-6
    • POST /chat with model: haikuclaude-haiku-4-5-20251001
    • Multi-turn session resume (same session_id, context preserved)
    • SSE streaming (startchunkdone, model in payload)
  • OpenAPI spec validation test passes

🤖 Generated with Claude Code

bupao and others added 4 commits March 13, 2026 15:37
Upgrade @anthropic-ai/claude-agent-sdk from 0.2.34 to 0.2.74 (memory leak
fix, HTTP MCP fix, session persistence fix, Sonnet 4.6 support).

Add model selection: CLAUDE_MODEL/CLAUDE_FALLBACK_MODEL env vars for
server-level config, per-request `model` param in POST /chat for override.
Precedence: per-request > CLAUDE_MODEL > SDK/CLI default. Actual model
used is reported in the response `model` field.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Omitting `model` lets the CLI track the latest default automatically,
avoiding version lock-in. Remove `model` from Postman request templates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bupao bupao merged commit c54040d into main Mar 13, 2026
1 check passed
@bupao bupao deleted the feat/model-selection branch March 13, 2026 08:42
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.

1 participant