Repository navigation
chore: add coralbricks provider - #502
Conversation
CoralBricks is an OpenAI-compatible inference gateway for open models (GLM 5.2, Kimi K3, GPT-OSS 120B) with up to 1M context and free cached input (cost_per_1m_in_cached: 0). Follows the openai-compat config pattern; loads via GetAll(), build + provider tests green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Friendly ping @andreynering, this adds CoralBricks as an OpenAI-compat provider (config JSON + |
|
Gentle follow-up @andreynering, this has been sitting for over a week now. It's mergeable, build + tests green, loads via |
New flagship GLM on the CoralBricks gateway: 1M context, $1.12/M in, $4.40/M out, free cached input, reasoning. Promoted to default_large_model_id (5.3 supersedes 5.2). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Pushed an update: added GLM 5.3 ( |
GLM 5.2 is being deprecated in favor of GLM 5.3. Provider now lists glm-5.3-fp4 (default large), kimi-k3, gpt-oss-120b. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Follow-up: dropped GLM 5.2 ( |
|
Thanks for the merge @andreynering! 🎉 |
catwalk.KnownProviders() in pkg/catwalk/provider.go returned 35 of the 41 providers that embedded.GetAll() actually ships. deepseek, ionet, alibaba-singapore, alibaba-us, coralbricks and scaleway are all in providerRegistry in internal/providers/providers.go with embedded configs, but none of them was listed, so anything using the public API to enumerate known providers missed six of them. The two lists have always been kept in step: atlascloud (#463), moonshot (#325), fireworks (#373) and baseten each added an InferenceProvider constant and a KnownProviders entry in one commit, and the Lambda (#79) and z.ai coding (#66) removals took both away. These six drifted. ionet (#179), alibaba-singapore (#282), alibaba-us (#412) and deepseek (#271) added the constant without the entry, and coralbricks (#502) and scaleway (#309) never got a constant. Declares InferenceProviderCoralBricks and InferenceProviderScaleway, and inserts all six into KnownProviders at the position that mirrors the constant block, so both read in the same order. Adds TestKnownProvidersMatchesRegistry in internal/providers, which fails if the registry and KnownProviders disagree in either direction.
What
Adds CoralBricks as an inference provider — an OpenAI-compatible gateway serving open models with up to 1M context.
Models: GLM 5.2 (
glm-5.2-fp4), Kimi K3 (kimi-k3), GPT-OSS 120B (gpt-oss-120b). Endpointhttps://inference.coralbricks.ai/v1, key$CORALBRICKS_API_KEY, typeopenai-compat.Notable:
cost_per_1m_in_cached: 0on every model — cached input tokens are free on the gateway.Follows the existing pattern
internal/providers/configs/coralbricks.json(mirrors the otheropenai-compatconfigs)//go:embed+coralBricksProvider()+providerRegistryentry ininternal/providers/providers.goVerified
go build ./...cleango test ./internal/providers/greenGetAll()with 3 models, correct endpoint, and free cached-input pricingPricing source: https://www.coralbricks.ai/pricing. Reasoning is declared (
can_reason: true); per-request effort levels are intentionally omitted for now.🤖 Generated with Claude Code