Add NEAR AI Cloud provider#1772
Merged
Merged
Conversation
Adds nearai as an OpenAI-compatible provider at https://cloud-api.near.ai/v1 serving 33 models. First-party mirrors (anthropic/openai/google) use `extends`; NEAR-hosted open-weight models (Qwen, GLM-5.1-FP8, gpt-oss, whisper, FLUX) have full definitions. Pricing and context limits sourced from cloud-api.near.ai/v1/models.
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.
Summary
Adds NEAR AI Cloud (
nearai) as a new OpenAI-compatible provider serving 33 models athttps://cloud-api.near.ai/v1, plus a brand logo.Approach
anthropic/*,openai/*,google/*) useextendswith overrides only where cloud-api pricing or limits differ from the canonical entry (per the README's guidance that wrappers shouldn't duplicate first-party defs).zai-org/GLM-5.1-FP8,openai/gpt-oss-120b,openai/whisper-large-v3,black-forest-labs/FLUX.2-klein-4B) ship with full TOML definitions.Qwen/Qwen3.5-122B-A10Bextends the canonical alibaba entry with cost/limit overrides for cloud-api pricing.logo.svgadapted fromcloud.near.ai/favicon.svg, normalized tocurrentColorand no fixed size per the contribution guide.Pricing, context windows, and modalities are sourced from
GET https://cloud-api.near.ai/v1/models.Validation
bun validatepasses locally with exit code 0; the generatednearaientry materialises all 33 models with the expected pricing and limits.Closes #1771 (re-opened from the nearai org fork so the contribution is owned by the NEAR AI organization).
Test plan
bun installbun validate(exit 0)