feat: add NEAR AI Cloud provider#8169
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8ad35f086
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Review: feat: add NEAR AI Cloud providerSummaryThis PR adds NEAR AI Cloud as a new predefined OpenAI-compatible remote provider with endpoint . It includes model catalog fetching from the NEAR AI endpoint, filtering of non-chat models (image generation, embeddings, rerankers, transcription, utility), documentation, and test coverage. Strengths
Issues and Concerns
Missing
Merge ReadinessThe PR is well-structured, follows existing patterns, and includes solid test coverage. The issues identified are minor and mostly relate to future-proofing rather than correctness bugs. Recommendation: can merge |
Describe Your Changes
https://cloud-api.near.ai/v1./model/listcatalog and filter out non-chat utility, embedding, image, transcription, and reranker entries.Testing
yarn vitest run --project @janhq/web-app web-app/src/constants/__tests__/nearai-provider.test.ts web-app/src/lib/__tests__/remoteModelCatalog.test.ts web-app/src/lib/__tests__/model-factory.test.ts web-app/src/lib/__tests__/utils.test.tsyarn workspace @janhq/web-app eslint src/constants/models.ts src/constants/providers.ts src/lib/remoteModelCatalog.ts src/lib/model-factory.ts src/lib/utils.tsyarn workspace @janhq/web-app tsc -b --pretty falseSelf Checklist