feat(providers): add CoralBricks - #502
Open
divyvasal wants to merge 1 commit into
Open
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>
Author
|
Friendly ping @andreynering, this adds CoralBricks as an OpenAI-compat provider (config JSON + |
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 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