feat: add InferenceHub provider to OpenAI-compatible registry - #22
Merged
eric8810 merged 2 commits intoAug 4, 2026
Merged
Conversation
Registry entry (name inferencehub, base_url https://app.inferencehub.tech/v1, env INFERENCEHUB_API_KEY, default profile) + regenerated ProviderName types for all bindings (gen_provider_names.py) + regenerated docs/api/providers.md (gen_providers_doc.py). Bumps the two hardcoded registry-count test asserts in provider.rs from 250 to 251. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
could you please share some knowledge into our provider inventory documentation |
Provider-submitted entry, requested by maintainer review on PR arcships#22: providers.json entry at sorted position (trust.status=review, provenance recorded via source_id "provider_submission" pointing at the PR), the matching providers.csv row, and the aimux_provider_modules listing. Summary counts and README totals left untouched (generator-owned). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
Added in 6ff3f7a — Notes on the field choices, so you can adjust anything to taste:
|
Contributor
|
will merge when ci is complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
inferencehubto the OpenAI-compatible provider registry:aimux-providers/src/provider_registry.json— new entry (sorted position):name: inferencehub,display: InferenceHub,base_url: https://app.inferencehub.tech/v1,env_var: INFERENCEHUB_API_KEY,profile: {}scripts/gen_provider_names.py(ProviderName types for Rust + the 7 binding languages) andscripts/gen_providers_doc.py(docs/api/providers.md).provider.rstests (registry_entries_are_valid,provider_name_roundtrip) 250 → 251.Note: README says "325 providers / 250 registry-backed", while the generated
docs/api/providers.mdnow counts 327 / 251 (it was 326 / 250 before this PR, so the total was already off by one). I left README untouched rather than half-fix it — happy to update those numbers here too if you'd like.Protocol evidence (per RFC-0006)
POST /v1/chat/completionsandGET /v1/modelson basehttps://app.inferencehub.tech/v1,Authorization: Bearerauth, and SSE streaming ("stream": true).{}) applies and no shared-layer changes are needed.Verified against the live endpoint
Ran the exact registry code path via the Node binding's
provider(...)with abaseUrloverride before adding the entry:generateText✓ (text + usage) — modelzai-glm-5.2streamText✓ (incremental deltas) — modeldeepseek-v4-flashtool_callsreturned, finish reasontool-calls)GET /v1/modelsreturns the live model id list (e.g.zai-glm-5.2,deepseek-v4-flash,gpt-5.6-sol)Tests
No-difference thin wrapper → no cassette added (RFC-0006: "A no-difference thin wrapper does not need to record a cassette merely for process completeness"). Locally:
cargo fmt --all -- --check,cargo clippy -p aimux-providers --all-targets -- -D warnings, andcargo test -p aimux-providers --testspass.Disclosure: I run InferenceHub. Happy to adjust anything about the entry.
🤖 Generated with Claude Code