opencode/packages
Michael Yochpaz b110291d38 fix(provider): enable thinking for google-vertex-anthropic models
Fixes reasoning/thinking not working for Claude models on GCP Vertex AI by correcting the npm package identifier and provider options key mapping.

The issue had two root causes:
1. models.dev API returns npm: '@ai-sdk/google-vertex' for google-vertex-anthropic provider, but variant generation expects '@ai-sdk/google-vertex/anthropic' (subpath import)
2. sdkKey() function didn't map '@ai-sdk/google-vertex/anthropic' to 'anthropic' key, causing thinking options to be wrapped with wrong provider key

Changes:
- Transform npm package to '@ai-sdk/google-vertex/anthropic' for google-vertex-anthropic provider in fromModelsDevModel()
- Add '@ai-sdk/google-vertex/anthropic' case to sdkKey() to return 'anthropic' key
- Add comprehensive tests for npm transformation, variant generation, and providerOptions key mapping
2026-01-24 23:17:02 +02:00
..
app fix(app): scrolling for unpaid model selector 2026-01-24 13:38:14 -06:00
console chore: generate 2026-01-24 16:55:54 +00:00
desktop chore: generate 2026-01-24 18:04:12 +00:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
enterprise release: v1.1.34 2026-01-23 07:27:35 +00:00
extensions/zed release: v1.1.34 2026-01-23 07:27:35 +00:00
function release: v1.1.34 2026-01-23 07:27:35 +00:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
opencode fix(provider): enable thinking for google-vertex-anthropic models 2026-01-24 23:17:02 +02:00
plugin chore: generate 2026-01-23 10:55:37 +00:00
script chore(opencode): Use Bun.semver instead of node-semver (#9773) 2026-01-20 23:37:33 -06:00
sdk chore: generate 2026-01-23 11:19:35 +00:00
slack release: v1.1.34 2026-01-23 07:27:35 +00:00
ui fix(app): prompt submission failing on first message 2026-01-24 13:15:34 -06:00
util fix(util): change filename truncation to end truncation, add truncateMiddle utility 2026-01-24 18:59:07 +00:00
web feat(docs): add a desktop troubleshooting guide (#10397) 2026-01-24 12:00:51 -05:00