Repository navigation
feat(providers): add ainetcafe as an OpenAI-compatible provider - #13862
diegosouzapw merged 11 commits into
Conversation
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.
# 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>
…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
|
Re-homed to |
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>
|
Hi @mario03690 — closing this pull request to clear the open queue. The branch |
|
Hi @mario03690 — reopening this pull request. The close was a mistake, and it is back in the merge queue. The branch |
|
Re-homed to |
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).
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>
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>
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>
…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>
Summary
https://microquickjs.com/v1, model IDKimi-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).AGGREGATOR_PROVIDER_IDS.hasFree: truebecause new accounts receive a small spendable sign-up credit;freeNoteattributes the amount and eligibility to the provider so the badge never over-promises.Related Issues
Validation
node --import tsx/esm --test tests/unit/ainetcafe-provider.test.ts(7 pass),tests/unit/provider-translate-path-golden.test.ts(regenerated withUPDATE_GOLDEN=1; the diff is only the newainetcafeblock),npm run check:provider-assets(passed).npm run check:provider-consistencycould not run on my machine because thebunpostinstall was skipped (--ignore-scripts); no bun-dependent files were touched.npx eslinton every touched file: clean. Prettier: clean.main(19b9d05).npm run check:file-size:gateways.ts1502 → 1521 rebaselined inconfig/quality/file-size-baseline.jsonwith 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 untouchedmaincheckout and are not touched here.stream_options.include_usageand non-streaming), function tool calls (finish_reason: tool_calls), image input,reasoning_contentin responses,/v1/modelslisting.Tests Added Or Updated
tests/unit/ainetcafe-provider.test.ts(new)tests/snapshots/provider/translate-path.json(regenerated: +ainetcafeblock)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.tsare covered bytests/unit/ainetcafe-provider.test.ts(registry wiring, endpoint, executor, metadata, free-tier flag, no unverified capabilities) and the translate-path golden.Reviewer Notes
changelog.d/features/<PR>-ainetcafe-provider.mdas soon as the PR number exists.