[PR #2028] Fix Vertex/Anthropic by adding subpath support for provider modules #10166

Closed
opened 2026-02-16 18:14:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2028

State: closed
Merged: No


Added subpath field to provider model and updated import logic to support subpaths for npm packages. This allows providers like google-vertex-anthropic to properly import from specific subpaths.

Tested with

{
  "$schema": "https://opencode.ai/config.json",
  "model": "google-vertex-anthropic/claude-3-7-sonnet@20250219",
  "provider": {
    "google-vertex-anthropic": {
      "models": {
        "claude-3-7-sonnet@20250219": {},
      },
      "options": {
        "project": "my project",
        "location": "my location"
      }
    }
  }
}
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2028 **State:** closed **Merged:** No --- Added subpath field to provider model and updated import logic to support subpaths for npm packages. This allows providers like google-vertex-anthropic to properly import from specific subpaths. Tested with ```json { "$schema": "https://opencode.ai/config.json", "model": "google-vertex-anthropic/claude-3-7-sonnet@20250219", "provider": { "google-vertex-anthropic": { "models": { "claude-3-7-sonnet@20250219": {}, }, "options": { "project": "my project", "location": "my location" } } } } ```
yindo added the pull-request label 2026-02-16 18:14:47 -05:00
yindo closed this issue 2026-02-16 18:14:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10166