Repository navigation
Conversation
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.
Adds bf16.ai as an OpenAI-compatible inference provider (
bf16) along with acmd/bf16generator wired intoTaskfile.yamland.github/workflows/sync.yml.Details
bf16($BF16_API_KEY)https://api.bf16.ai/v1(type: "completions")zai-org/glm-5.3-uncensored(1M context, 131,072 max output, reasoning + tools)deepseek/deepseek-v4.1-flash-uncensored(1M context, 130,000 max output, vision + reasoning + tools)GET https://api.bf16.ai/v1/modelsendpoint (USD per 1M tokens includingcache_hit, context windows up to 1,048,576,toggleablereasoning withlow/medium/high/maxeffort levels, and vision support where advertised).cmd/bf16/main.gorequires no API key or repository secret and skips smart-router aliases (bf16/auto*), keeping concrete tool-capable models synced automatically.Verification
Ran the full local verification suite on Linux arm64 (
go@1.26.11,gofumpt@0.10.0,golangci-lint@2.13.1):go run ./cmd/bf16/main.gotask format(gofumpt -w .+go run ./cmd/format)task lint(golangci-lint run ./...— 0 issues)task test(go test ./...— all packages pass)I have read
CONTRIBUTING.md.[-] I have created a discussion that was approved by a maintainer (for new features). This adds a provider config and its sync generator only.