Repository navigation
feat(provider): add bf16.ai chat completion provider preset #11348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Connecting to bf16.ai | ||
|
|
||
| [bf16.ai](https://bf16.ai) is an uncensored LLM API serving open-weight models (DeepSeek V4.1 Flash, GLM-5.3, Kimi K3.1 Pro, and bf16 Auto routers) with 1M context windows, vision, structured tool calling, and ultra-low refusal rates over an OpenAI-compatible endpoint. Because refusal behavior is removed from the model weights rather than papered over with prompts, autonomous AstrBot IM workflows and tool chains complete reliably while your local AstrBot permissions and sandboxes enforce operational boundaries. | ||
|
|
||
| ## Configuring the Chat Model | ||
|
|
||
| 1. Register and sign in at [bf16.ai](https://bf16.ai). | ||
| 2. Create an API key (`sk-bf16-v1-...`) in [Dashboard → API Keys](https://bf16.ai/dashboard/keys). | ||
| 3. In the AstrBot WebUI, open **Providers → Chat Completion**, click **Add**, and select **`bf16.ai`**. | ||
| 4. Enter your `API Key`, confirm `API Base URL` is `https://api.bf16.ai/v1`, and click **Save and Fetch Models** (or add a model manually such as `deepseek/deepseek-v4.1-flash-uncensored`, `zai-org/glm-5.3-uncensored`, or `bf16/auto`). | ||
| 5. Click `+` next to the desired model, enable **Vision** and **Tool Calling** if needed, and click **Test Model** to verify connectivity. | ||
|
|
||
| ## Applying the Chat Model | ||
|
|
||
| Open **Config**, select your profile, go to **AI → Model**, set **Chat Model** to your bf16.ai model, and click **Save Configuration**. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # 接入 bf16.ai | ||
|
|
||
| [bf16.ai](https://bf16.ai) 提供无审查(Uncensored)开源权重模型推理 API(DeepSeek V4.1 Flash、GLM-5.3、Kimi K3.1 Pro 以及 `bf16/auto` 智能路由),兼容 OpenAI 接口,支持 1M 上下文、视觉理解与结构化工具调用。由于模型权重层已去除过度拒答行为,AstrBot 多步自动化任务、技术群聊与 Agent 沙箱工作流不易被误拒中断,同时由 AstrBot 本地权限与沙箱策略守住安全边界。 | ||
|
|
||
| ## 配置对话模型 | ||
|
|
||
| 1. 注册并登录 [bf16.ai](https://bf16.ai)。 | ||
| 2. 在 [控制台 → API Keys](https://bf16.ai/dashboard/keys) 创建 API Key(以 `sk-bf16-v1-` 开头)。 | ||
| 3. 进入 AstrBot WebUI 的「模型提供商」→「对话」,点击「新增」,选择 `bf16.ai`。 | ||
| 4. 填写 `API Key`,确认 `API Base URL` 为 `https://api.bf16.ai/v1`,点击「保存并获取模型」(或手动填写模型 ID,如 `deepseek/deepseek-v4.1-flash-uncensored`、`zai-org/glm-5.3-uncensored`、`bf16/auto`)。 | ||
| 5. 在模型列表中点击所需模型右侧的 `+` 启用,按需开启视觉与工具调用能力,并点击「测试模型」验证连通性。 | ||
|
|
||
| ## 应用对话模型 | ||
|
|
||
| 进入「配置文件」,选择要使用的配置文件,在「AI」→「模型」中将「对话模型」设为刚添加的 bf16.ai 模型,点击右下角「保存配置」。 |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium · Concurrent setup overwrites provider
When two dashboards with the same initially loaded provider list add and save a bf16.ai source before either refreshes, both dashboards generate
bf16from their local provider-source lists, and the laterupsert_provider_sourcecall finds that ID and replaces the stored source instead of rejecting the create. The first dashboard’s API key and settings are lost, and both users see a single provider source.Make source creation enforce ID uniqueness atomically on the server, or generate IDs that remain unique across dashboards.
Prompt for AI agents