Files
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
..
2026-01-24 16:55:54 +00:00
2026-01-24 18:04:12 +00:00
2026-01-21 14:36:21 -06:00
2026-01-23 07:27:35 +00:00
2026-01-23 07:27:35 +00:00
2026-01-23 07:27:35 +00:00
2026-01-23 10:55:37 +00:00
2026-01-23 11:19:35 +00:00
2026-01-23 07:27:35 +00:00