> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siflow.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# WorkBuddy

> 了解如何在 WorkBuddy 中添加自定义模型并填写完整的 chat completions 端点，接入 siflow endpoint，让桌面办公助手使用算秩模型处理文档、表格和演示文稿。

WorkBuddy 是一款国内办公助手（桌面 Agent），覆盖 Word/PPT/Excel 与本地 Office/WPS 编辑、研究写作、自动化、技能市场等能力。它的自定义模型支持 OpenAI 兼容接口，因此可以接入算秩模型推理服务。

本文以 `zai-org/glm-5.3` 为例。完整模型清单与价格见 [模型广场](https://console.siflow.cn/model-inference/models)。

## 配置

在 [API 密钥](https://console.siflow.cn/model-inference/api_keys) 页面创建一个 API Key。打开 **设置 → Models → Custom Models**，单击 **Add Model**（添加后会保存到本地 `~/.workbuddy-ai/models.json`）：

<img src="https://mintcdn.com/siflow/0ha3wxuhP6QoYIJW/model-inference/media/work-buddy-models.png?fit=max&auto=format&n=0ha3wxuhP6QoYIJW&q=85&s=0d72e540f5b4114f73f180f085cfd943" alt="WorkBuddy —— 设置 → Models → Custom Models → Add Model" style={{ width: "75%", height: "auto" }} width="2400" height="1600" data-path="model-inference/media/work-buddy-models.png" />

在 **Add Model** 弹窗中填写：

| 字段                | 值                                                                             |
| ----------------- | ----------------------------------------------------------------------------- |
| Provider          | Custom（OpenAI-compatible API only）                                            |
| Endpoint          | `https://api.siflow.cn/model-api/chat/completions`                            |
| API Key           | 您在 [API 密钥](https://console.siflow.cn/model-inference/api_keys) 页面创建的 API Key |
| Model Name        | `zai-org/glm-5.3`                                                             |
| Advanced Settings | 勾选 **Tool Calling**（启用工具/技能调用）                                                |

单击 **Test connection**，显示 **Connection succeeded** 后单击 **Save**。

<img src="https://mintcdn.com/siflow/0ha3wxuhP6QoYIJW/model-inference/media/work-buddy-add-model.png?fit=max&auto=format&n=0ha3wxuhP6QoYIJW&q=85&s=d96eab64db420d7c497347ae6d1af8e5" alt="WorkBuddy —— 指向 siflow endpoint 的自定义模型，连接成功" style={{ width: "75%", height: "auto" }} width="2400" height="1600" data-path="model-inference/media/work-buddy-add-model.png" />

## 验证

新建对话，发送一条消息，WorkBuddy 正常回复即接入成功。回复底部会标出所用模型 `zai-org/glm-5.3`。

<img src="https://mintcdn.com/siflow/0ha3wxuhP6QoYIJW/model-inference/media/work-buddy-chat-reply.png?fit=max&auto=format&n=0ha3wxuhP6QoYIJW&q=85&s=2b3c00acb68c89fd1634cc47acb0a219" alt="WorkBuddy —— 通过 siflow endpoint 调用 zai-org/glm-5.3 并正常回复" style={{ width: "70%", height: "auto" }} width="2124" height="1746" data-path="model-inference/media/work-buddy-chat-reply.png" />

## 常见问题

* **Endpoint 要填完整路径** `https://api.siflow.cn/model-api/chat/completions`：WorkBuddy 的自定义 Provider 要的是完整的 chat/completions 地址，不是 base URL，也不带 `/v1`。
* **打开 Tool Calling**：WorkBuddy 的文档、表格、研究等技能依赖工具调用，需在 Advanced Settings 勾选 **Tool Calling**，并选用支持工具调用的模型（`zai-org/glm-5.3` 可用）。
* **Model Name 用模型的完整 ID**（含厂商前缀，如 `zai-org/glm-5.3`），以 [模型广场](https://console.siflow.cn/model-inference/models) 为准。
