Skip to content

feat: add API Route provider template - #1548

Merged
akramcodez merged 3 commits into
Nano-Collective:mainfrom
DennyHo0917:feat/api-route-provider-template
Oct 2, 2026
Merged

akramcodez merged 3 commits into
Nano-Collective:mainfrom
DennyHo0917:feat/api-route-provider-template

Conversation

@DennyHo0917

Copy link
Copy Markdown
Contributor

Description

Add API Route as a first-class template in the provider setup wizard. It uses the existing OpenAI-compatible client with the fixed https://global.api-route.com/v1 endpoint and an editable model ID, so no new SDK integration is needed.

This follows the recently merged Cheaper Inference template and includes provider documentation, a changeset, and focused tests.

Type of Change

  • New feature
  • Documentation update
  • Breaking change

Testing

  • pnpm test:ava source/wizards/templates/provider-templates.spec.ts — 47 passed
  • pnpm test:types — passed
  • pnpm exec biome check on changed source and docs — passed
  • git diff --check — passed

No live API Route account or Nanocoder chat session was available for an end-to-end request. The new tests cover template construction, model parsing, and the fixed endpoint.

Changeset

  • Added a minor changeset for the new wizard choice.

@github-actions

Copy link
Copy Markdown
Contributor

nc-review: nothing to raise

@DennyHo0917 — nothing to raise from the automated review.

Adds an API Route provider template using the existing apiKeyTemplate helper with a fixed OpenAI-compatible endpoint and an editable model, mirroring the recently merged Cheaper Inference template. The implementation is small and follows established patterns, the tests exercise real behaviour (fixed baseUrl, comma-separated model parsing, default name and model field), the docs page and index entry are added, and the changeset uses the correct package name. No findings.


🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional

Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with /re-review.

@github-actions github-actions Bot added the agent:clean nc-review had nothing to raise label Sep 30, 2026
@akramcodez
akramcodez merged commit abf67e9 into Nano-Collective:main Oct 2, 2026
16 checks passed
@akramcodez

Copy link
Copy Markdown
Member

Amazing work, thanks for the PR @DennyHo0917

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

Labels

agent:clean nc-review had nothing to raise area:docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants