Skip to content

docs(providers): clarify npm choice for chat vs responses APIs#16974

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
andyWang1688:docs/custom-provider-npm-guidance
Mar 11, 2026
Merged

docs(providers): clarify npm choice for chat vs responses APIs#16974
rekram1-node merged 1 commit intoanomalyco:devfrom
andyWang1688:docs/custom-provider-npm-guidance

Conversation

@andyWang1688
Copy link
Contributor

Issue for this PR

Related to #16154

Type of change

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

What does this PR do?

Adds a minimal clarification in provider docs that:

  • @ai-sdk/openai-compatible applies to chat-completions style APIs (/v1/chat/completions)
  • responses-based models/providers (/v1/responses) should use @ai-sdk/openai
  • mixed setups can override per model via provider.npm

Updated both:

  • English docs: packages/web/src/content/docs/providers.mdx
  • Simplified Chinese docs: packages/web/src/content/docs/zh-cn/providers.mdx

How did you verify your code works?

  • Verified both edited sections render valid markdown and remain in existing structure.
  • Kept change intentionally minimal (4 line edits total).

Screenshots / recordings

N/A (docs-only)

Checklist

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

@rekram1-node rekram1-node merged commit 9c585bb into anomalyco:dev Mar 11, 2026
11 checks passed
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.

2 participants