Skip to content

fix(provider): apply provider npm to existing models#33893

Open
tangtaizong666 wants to merge 1 commit into
anomalyco:devfrom
tangtaizong666:codex-fix-provider-npm-33888
Open

fix(provider): apply provider npm to existing models#33893
tangtaizong666 wants to merge 1 commit into
anomalyco:devfrom
tangtaizong666:codex-fix-provider-npm-33888

Conversation

@tangtaizong666

Copy link
Copy Markdown

Issue for this PR

Closes #33888

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Provider-level npm now updates existing catalog models when config overrides a provider without enumerating models. Per-model provider.npm still wins through the existing model merge path.

How did you verify your code works?

  • Added a provider test that failed before the fix with @ai-sdk/anthropic still selected.
  • bun test test/provider/provider.test.ts -t "provider-level npm" --timeout 120000
  • bun test test/provider/provider.test.ts --timeout 180000
  • bun run --cwd packages/opencode typecheck
  • bun lint exits 0; existing warnings remain

Screenshots / recordings

Not a UI change.

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

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.

Provider-level npm field silently ignored unless models is also configured

1 participant