Skip to content

Add NEAR AI Cloud provider - #144

Open
PierreLeGuen wants to merge 1 commit into
limecloud:mainfrom
PierreLeGuen:nearai-provider
Open

PierreLeGuen wants to merge 1 commit into
limecloud:mainfrom
PierreLeGuen:nearai-provider

Conversation

@PierreLeGuen

Copy link
Copy Markdown

Summary

  • Add NEAR AI Cloud as an OpenAI-compatible provider with NEARAI_API_KEY and https://cloud-api.near.ai/v1 defaults.
  • Register NEAR AI Cloud in the desktop provider catalog, model fetch support, access help, and provider icon mapping.
  • Add a native Aster provider wrapper with NEAR AI Cloud defaults and public catalog model discovery.

Implementation notes

  • NEAR AI model discovery uses the public /v1/model/list catalog and does not require an API key for catalog fetches.
  • Dynamic catalog parsing maps text-output models to chat completions and image-output models to the images API, while filtering non-inference catalog entries such as the privacy filter and embeddings.
  • Connection testing uses the NEAR catalog endpoint instead of the generic OpenAI /models path.

Testing

  • cargo test --manifest-path src-tauri/Cargo.toml -p lime-core nearai
  • cargo test --manifest-path src-tauri/Cargo.toml -p lime-core provider_type
  • cargo test --manifest-path src-tauri/Cargo.toml -p lime-services nearai
  • npm test -- src/lib/model/providerModelFetchSupport.test.ts
  • npm run typecheck
  • pnpm exec eslint src/lib/model/providerModelFetchSupport.ts src/lib/model/providerModelFetchSupport.test.ts src/lib/provider/providerAccessHelp.ts src/components/api-key-provider/ModelAddPanel.tsx src/icons/providers/utils.ts --max-warnings 0

Standalone Aster crate tests are currently blocked because the Aster lockfile pins uuid 1.24.0, which the current crates.io index does not resolve.

@PierreLeGuen
PierreLeGuen marked this pull request as ready for review May 21, 2026 13:27
@wutongci
wutongci force-pushed the main branch 2 times, most recently from 7090900 to 3df1537 Compare July 2, 2026 01:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant