Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add NEAR AI Cloud provider#144

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

Add NEAR AI Cloud provider #144
PierreLeGuen wants to merge 1 commit into
limecloud:main from
PierreLeGuen:nearai-provider

Conversation

@PierreLeGuen

@PierreLeGuen PierreLeGuen commented May 21, 2026

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /