feat: add NEAR AI Cloud provider#1210
Open
PierreLeGuen wants to merge 1 commit into
Open
Conversation
This was referenced May 22, 2026
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 as a built-in OpenAI-compatible inference provider with
NEARAI_API_KEYauthentication and the defaulthttps://cloud-api.near.ai/v1base URL.Changes
nearaiin provider defaults, provider detection, and the model catalog.Testing
cargo fmt --all -- --checkcargo test -p openfang-runtime nearaicargo test -p openfang-runtime test_known_providers_listcargo test -p openfang-runtime test_catalog_has_providerscargo build -p openfang-runtime --libcargo clippy -p openfang-runtime --all-targets -- -D warningscargo build --workspace --lib --exclude openfang-desktopFull
cargo build --workspace --librequires the desktop GTK/GLib pkg-config dependencies; the non-desktop workspace library build passed locally.Security