Skip to content

feat(providers): add ainetcafe as an OpenAI-compatible provider - #13862

Merged
diegosouzapw merged 11 commits into
cheaper-inference:release/v3.8.53from
mario03690:feat/ainetcafe-provider
Oct 25, 2026
Merged

diegosouzapw merged 11 commits into
cheaper-inference:release/v3.8.53from
mario03690:feat/ainetcafe-provider

Conversation

@mario03690

Copy link
Copy Markdown
Contributor

Summary

  • Adds ainetcafe as an OpenAI-compatible API-key provider. ainetcafe serves Kimi K3 from its own cluster at native MXFP4 ($2.10 / $10.50 per M tokens, $0.30 cached input); base URL https://microquickjs.com/v1, model ID Kimi-K3, catalog discovered live from /v1/models (passthroughModels, models: [], no tool/vision capability declared until exercised through this executor), same shape as GreenPT (feat(providers): add GreenPT as an OpenAI-compatible provider #13024).
  • Not an aggregator (serves its own inference), so it is not added to AGGREGATOR_PROVIDER_IDS.
  • hasFree: true because new accounts receive a small spendable sign-up credit; freeNote attributes the amount and eligibility to the provider so the badge never over-promises.
  • Disclosure: I work on ainetcafe.

Related Issues

Validation

  • Change type: provider
  • Focused tests and category gates from the golden path: node --import tsx/esm --test tests/unit/ainetcafe-provider.test.ts (7 pass), tests/unit/provider-translate-path-golden.test.ts (regenerated with UPDATE_GOLDEN=1; the diff is only the new ainetcafe block), npm run check:provider-assets (passed). npm run check:provider-consistency could not run on my machine because the bun postinstall was skipped (--ignore-scripts); no bun-dependent files were touched.
  • npx eslint on every touched file: clean. Prettier: clean.
  • Reconciled with current main (19b9d05).
  • Production-code change includes a new automated test in this PR.
  • npm run check:file-size: gateways.ts 1502 → 1521 rebaselined in config/quality/file-size-baseline.json with the usual declarative-data rationale. The four other files it reports (open-sse/utils/stream.ts, executors/codex.ts, handlers/imageGeneration.ts, services/combo/roundRobinCombo.ts) already fail identically on an untouched main checkout and are not touched here.
  • Endpoint behaviour verified directly with curl before opening this: chat completions (streaming with stream_options.include_usage and non-streaming), function tool calls (finish_reason: tool_calls), image input, reasoning_content in responses, /v1/models listing.

Tests Added Or Updated

  • tests/unit/ainetcafe-provider.test.ts (new)
  • tests/snapshots/provider/translate-path.json (regenerated: + ainetcafe block)

Coverage Notes

  • open-sse/config/providers/registry/ainetcafe/index.ts, open-sse/config/providers/index.ts, src/shared/constants/config.ts, src/shared/constants/providers/apikey/gateways.ts are covered by tests/unit/ainetcafe-provider.test.ts (registry wiring, endpoint, executor, metadata, free-tier flag, no unverified capabilities) and the translate-path golden.

Reviewer Notes

  • Declarative data only; no logic, no new branching, no secrets. Changelog fragment will be added under changelog.d/features/<PR>-ainetcafe-provider.md as soon as the PR number exists.

ainetcafe serves Kimi K3 from its own cluster behind an OpenAI-compatible
endpoint (https://microquickjs.com/v1). Registry entry uses the shared
OpenAI-compatible builder with live model discovery (passthroughModels),
plus PROVIDER_ENDPOINTS, the API-key gateway catalog entry (hasFree: true
for the provider-set sign-up credit), the translate-path golden and a
unit test mirroring greenpt-provider.test.ts. gateways.ts rebaselined
1502->1521 with the usual declarative-data rationale.
mario03690 and others added 3 commits September 16, 2026 19:23
# Conflicts:
#	config/quality/file-size-baseline.json
Merging origin/release/v3.8.51 (retargeting this PR's base) combines this
branch's ainetcafe catalog entry with unrelated growth already on the tip,
landing gateways.ts one line above the frozen baseline recorded by the
merge conflict resolution. Sync the baseline to the real merged line count.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
@diegosouzapw
diegosouzapw changed the base branch from main to release/v3.8.51 September 18, 2026 04:15
…heaper-inference#14101)

Resolves the gateways.ts baseline entry (1520 -> 1539, +19 data lines for the ainetcafe gateway entry) against the 2026-09-18 merge-train rebaseline.
…etcafe-provider

# Conflicts:
#	config/quality/file-size-baseline.json
@diegosouzapw diegosouzapw changed the title feat(providers): add ainetcafe as an OpenAI-compatible provider [defer] feat(providers): add ainetcafe as an OpenAI-compatible provider Sep 25, 2026
@diegosouzapw diegosouzapw added the deferred-v3.8.52 Grande demais / suspeito para o lote atual; precisa de sessão dedicada no ciclo v3.8.52 label Sep 25, 2026
@diegosouzapw
diegosouzapw changed the base branch from release/v3.8.51 to release/v3.8.52 September 29, 2026 11:24
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Re-homed to release/v3.8.52: v3.8.51 entered its release freeze, so the branch now belongs to the release captain and development continues on the next cycle. Nothing is wrong with this PR — it just needed a live base. No action needed from you; CI will re-run against the new base.

@diegosouzapw diegosouzapw removed the deferred-v3.8.52 Grande demais / suspeito para o lote atual; precisa de sessão dedicada no ciclo v3.8.52 label Oct 1, 2026
@diegosouzapw diegosouzapw changed the title [defer] feat(providers): add ainetcafe as an OpenAI-compatible provider feat(providers): add ainetcafe as an OpenAI-compatible provider Oct 1, 2026
mario03690 and others added 4 commits October 7, 2026 23:44
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
# Conflicts:
#	open-sse/config/providers/index.ts
#	src/shared/constants/config.ts
#	src/shared/constants/providers/apikey/gateways.ts
#	tests/unit/provider-node-reserved-prefix.test.ts
#	tests/unit/providers-constants-split.test.ts
After the release tip merge (cheaper-inference#14297 onomeo landed in the same apikey
split files), wiring ainetcafe into APIKEY_PROVIDERS_GATEWAYS takes
gateways.ts from 1574 to 1575 lines; the catalog entry itself stays in
its own apikey/ainetcafe.ts.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Hi @mario03690 — closing this pull request to clear the open queue. The branch feat/ainetcafe-provider is kept, so the commits stay. Comment here if it should be reopened.

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Hi @mario03690 — reopening this pull request. The close was a mistake, and it is back in the merge queue. The branch feat/ainetcafe-provider was kept.

@diegosouzapw diegosouzapw reopened this Oct 10, 2026
@diegosouzapw diegosouzapw added the deferred-v3.8.53 Feat PRs held for v3.8.53. Keep open. Do not merge into v3.8.52. label Oct 13, 2026
@diegosouzapw diegosouzapw changed the title feat(providers): add ainetcafe as an OpenAI-compatible provider [defer] feat(providers): add ainetcafe as an OpenAI-compatible provider Oct 13, 2026
@diegosouzapw
diegosouzapw changed the base branch from release/v3.8.52 to release/v3.8.53 October 19, 2026 13:36
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Re-homed to release/v3.8.53: v3.8.52 entered its release freeze, so the branch now belongs to the release captain and development continues on the next cycle. Nothing is wrong with this PR — it just needed a live base. No action needed from you; CI will re-run against the new base.

@diegosouzapw diegosouzapw removed the deferred-v3.8.53 Feat PRs held for v3.8.53. Keep open. Do not merge into v3.8.52. label Oct 20, 2026
@diegosouzapw diegosouzapw changed the title [defer] feat(providers): add ainetcafe as an OpenAI-compatible provider feat(providers): add ainetcafe as an OpenAI-compatible provider Oct 20, 2026
Resolve the baseline conflict by taking the release tip (gateways.ts ceiling
1908 already covers the merged 1633 lines, no rebaseline needed) and bump the
provider-count pins for ainetcafe on the new tip: RESERVED_PREFIX_COUNT 432->433
and APIKEY_PROVIDER_COUNT 252->253 (measured).
@diegosouzapw
diegosouzapw merged commit 4dfdf8c into cheaper-inference:release/v3.8.53 Oct 25, 2026
diegosouzapw added a commit to netarz/OmniRoute that referenced this pull request Oct 26, 2026
Resolve the pinned provider counts on top of ainetcafe (cheaper-inference#13862):
APIKEY_PROVIDER_COUNT 254 and RESERVED_PREFIX_COUNT 434, keeping the
ainetcafe assertions and adding the gisoo prefix check. Regenerate
docs/reference/PROVIDER_REFERENCE.md (377 providers, 254 API-key).

Co-authored-by: netarz <info@netarz.ir>
diegosouzapw added a commit to binyangzhu000-sudo/OmniRoute that referenced this pull request Oct 26, 2026
Resolve the count pins after ainetcafe (cheaper-inference#13862) landed on the base:
RESERVED_PREFIX_COUNT 433 -> 434 and APIKEY_PROVIDER_COUNT 253 -> 254 (both
measured on the merged tree), take the base REPOSITORY_MAP table, regenerate
docs/reference/PROVIDER_REFERENCE.md (377 unique ids, apikey=254) and move
this PR's provider-total mentions to the real merged count 377.

Co-authored-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
diegosouzapw added a commit to turbolego/OmniRoute that referenced this pull request Oct 29, 2026
Resolve the conflicts with the ainetcafe provider (cheaper-inference#13862) keeping both: RESERVED_PROVIDER_PREFIXES 433 -> 434 and APIKEY_PROVIDERS 253 -> 254 (both measured), FREE_CATALOG_CURATED_AT bumped to 2026-10-28, PROVIDER_REFERENCE.md regenerated (378 providers, apikey=254).

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit to robertjitaru/OmniRoute that referenced this pull request Oct 29, 2026
…d re-pin provider counts (254 apikey, 434 reserved prefixes)

The release added ainetcafe (cheaper-inference#13862) in the same slots ParalonCloud uses: both registry/endpoint entries are kept and the count pins move to the measured 254/434. Aggregate-count doc conflicts take the release side here; the follow-up commit bumps them to 378.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
@diegosouzapw diegosouzapw mentioned this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants