docs(openai-compatible-providers): add NEAR AI Cloud#15538
Merged
Conversation
Collaborator
aayush-kapoor
left a comment
There was a problem hiding this comment.
please sign your commits! we are not able to merge otherwise
e29d73d to
4d5ef37
Compare
Contributor
Author
|
@aayush-kapoor done — the commit is now signed and shows as Verified. Let me know if anything else is needed before merge. |
aayush-kapoor
approved these changes
Jun 1, 2026
github-actions Bot
added a commit
that referenced
this pull request
Jun 1, 2026
## Background NEAR AI Cloud exposes an OpenAI-compatible API for TEE-backed inference. AI SDK users can already connect to it through `@ai-sdk/openai-compatible`; this adds a provider page showing the setup pattern and links it from the OpenAI-compatible providers index. ## Summary - Add `content/providers/02-openai-compatible-providers/50-nearai.mdx` with setup, provider instance, text generation, and streaming examples. - Add NEAR AI Cloud to the OpenAI-compatible providers index. - Use `NEARAI_API_KEY` and `https://cloud-api.near.ai/v1`, with a small request-body transform to avoid forwarding `reasoning_effort`. ## Manual Verification - `pnpm exec ultracite check content/providers/02-openai-compatible-providers/index.mdx content/providers/02-openai-compatible-providers/50-nearai.mdx` - `git diff --check` No live API call was run; this is a docs-only addition. ## Checklist - [ ] All commits are signed (PRs with unsigned commits cannot be merged) - [ ] Tests have been added / updated (for bug fixes / features) - [x] Documentation has been added / updated (for bug fixes / features) - [ ] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review) Co-authored-by: Aayush Kapoor <83492835+aayush-kapoor@users.noreply.github.com>
Contributor
|
✅ Backport PR created: #15739 |
aayush-kapoor
added a commit
that referenced
this pull request
Jun 1, 2026
This is an automated backport of #15538 to the release-v6.0 branch. FYI @PierreLeGuen Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Aayush Kapoor <83492835+aayush-kapoor@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
NEAR AI Cloud exposes an OpenAI-compatible API for TEE-backed inference. AI SDK users can already connect to it through
@ai-sdk/openai-compatible; this adds a provider page showing the setup pattern and links it from the OpenAI-compatible providers index.Summary
content/providers/02-openai-compatible-providers/50-nearai.mdxwith setup, provider instance, text generation, and streaming examples.NEARAI_API_KEYandhttps://cloud-api.near.ai/v1, with a small request-body transform to avoid forwardingreasoning_effort.Manual Verification
pnpm exec ultracite check content/providers/02-openai-compatible-providers/index.mdx content/providers/02-openai-compatible-providers/50-nearai.mdxgit diff --checkNo live API call was run; this is a docs-only addition.
Checklist
pnpm changesetin the project root)