opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Fix Vertex/Anthropic by adding subpath support for provider modules

Open jacobmikesell opened this issue 4 months ago • 0 comments

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"
      }
    }
  }
}

jacobmikesell avatar Aug 18 '25 01:08 jacobmikesell