一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

手把手教你用 WorkBuddy 接入腾讯混元大模型,实现 AI 对话与生图

时间:2026-08-05 08:13:57 编辑:袖梨 来源:一聚教程网

手把手教你用 WorkBuddy 接入腾讯混元大模型,实现 AI 对话与生图的重点在于把前置条件、操作顺序和容易误判的地方分清楚。

{"type":"doc","content":[{"type":"paragraph","attrs":{"id":"32a402891b4c4d5eaac7516ee9245197","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"image","attrs":{"id":"b78a485cba2446bbb177d46488e5623f","src":"https://picsum.photos/seed/hunyuan-mcp-banner/800/400","extension":"photos/seed/hunyuan-mcp-banner/800/400","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":504,"aspectRatio":"1.300676","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}}]},{"type":"heading","attrs":{"id":"3c0a5a110a014eea95de211c5e1104cc","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"前言"}]},{"type":"paragraph","attrs":{"id":"15989b838ad449ed860f38c5354a01cf","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"WorkBuddy 是腾讯推出的全场景 AI 办公工作台,不仅能对话,还能实际执行任务、操作文件。但你知道吗?通过 MCP(模型上下文协议),WorkBuddy 还可以接入腾讯自家的混元大模型,实现文本对话和 AI 生图能力。"}]},{"type":"paragraph","attrs":{"id":"32e18ecfbab8474298590e811a3d1d51","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"本文记录了我真实操作的全过程,从零开始搭建混元 MCP Server,配置到 WorkBuddy 中,最终成功调用混元模型进行对话和生图。全程实操,踩过的坑都记录下来了,照着做就能复现。"}]},{"type":"heading","attrs":{"id":"f8351d1ccc5240958f56592ff6fff91a","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"一、准备工作"}]},{"type":"heading","attrs":{"id":"7b8fb01b95f24b35b407e16349e07197","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"1.1 需要什么"}]},{"type":"paragraph","attrs":{"id":"d2c75af1bbb248acb05e28abf1bd8ed6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"| 项目 | 说明 |"},{"type":"text","text":" "},{"type":"text","text":"|------|------|"},{"type":"text","text":" "},{"type":"text","text":"| WorkBuddy | 已安装并登录 |"},{"type":"text","text":" "},{"type":"text","text":"| 腾讯云账号 | 需要开通混元服务 |"},{"type":"text","text":" "},{"type":"text","text":"| TokenHub API Key | 混元 OpenAI 兼容接口的鉴权密钥 |"},{"type":"text","text":" "},{"type":"text","text":"| Python 3.12 | 用于运行 MCP Server 脚本 |"}]},{"type":"heading","attrs":{"id":"4eadefd0386545998d9dbdd524bedb22","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"1.2 获取 TokenHub API Key"}]},{"type":"paragraph","attrs":{"id":"57a3317735e641a3b515920d3aafc407","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"混元大模型通过腾讯云 TokenHub 提供 OpenAI 兼容接口,需要创建一个专门的 API Key。"}]},{"type":"paragraph","attrs":{"id":"3abcd87e777e4cbbad7ab7e14c1b67fd","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"步骤:"}]},{"type":"paragraph","attrs":{"id":"97613bcd3deb4556a9a55b9b11807818","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"登录腾讯云控制台,访问 TokenHub 控制台:https://console.cloud.tencent.com/tokenhub/"}]},{"type":"paragraph","attrs":{"id":"713ed6c78ead44ed93babeff8da7e6ca","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"开通 TokenHub 服务"}]},{"type":"paragraph","attrs":{"id":"5a960cf8ec2d4628a26f9db3433bd30a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"进入 API Key 管理页面,点击「创建 API Key」"}]},{"type":"paragraph","attrs":{"id":"0d8c84f4b48c4bdf8364d6c70295e949","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"填写 Key 名称(如"},{"type":"text","text":"""},{"type":"text","text":"WorkBuddy-Hunyuan"},{"type":"text","text":"""},{"type":"text","text":"),访问范围选「全选」"}]},{"type":"paragraph","attrs":{"id":"7c00114ca49846679dcb571a6fd102ad","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"点击确定,"},{"type":"text","text":"立即复制保存 API Key"},{"type":"text","text":"(格式类似 "},{"type":"text","text":",只显示一次!)"}]},{"type":"blockquote","attrs":{"id":"11acd219afb84baebf37bb6d159b2553","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"274249e9954545869f4ad8246530b8eb","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"注意:TokenHub API Key 和腾讯云 CAM 的 SecretId/SecretKey 是两种不同的鉴权方式。混元 OpenAI 兼容接口需要的是 TokenHub API Key,不是 CAM 密钥。"}]}]},{"type":"heading","attrs":{"id":"5561d64f333d425a967aee1cf695de66","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"二、搭建混元 MCP Server"}]},{"type":"heading","attrs":{"id":"1eb2b3f0989e4a22bde7b6699115538f","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"2.1 创建 Python 环境"}]},{"type":"paragraph","attrs":{"id":"3f2f1776ca15425a955ecb0bb358370e","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"首先创建一个隔离的 Python 虚拟环境并安装依赖:"}]},{"type":"codeBlock","attrs":{"id":"92b641a1379b43e6aff0b7ea02cff689","language":"bash","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"7fdb0","languageByAi":"bash"},"content":[{"type":"text","text":"nn# 创建虚拟环境nnpython -m venv hunyuan-envnnn# 激活环境(Windows)nnhunyuan-envScriptsactivatennn# 安装依赖nnpip install mcp httpxnn"}]},{"type":"heading","attrs":{"id":"95d057efed0649ecaf3447df5545c08c","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"2.2 编写 MCP Server 脚本"}]},{"type":"paragraph","attrs":{"id":"22f16e45e11b4178ba767fe69acde7d1","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"创建一个 "},{"type":"text","text":" 文件,实现两个工具:"},{"type":"text","text":"(文本对话)和 "},{"type":"text","text":"(生图)。"}]},{"type":"paragraph","attrs":{"id":"2920047250fc441dad453adadaaa40a5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"核心逻辑如下:"}]},{"type":"paragraph","attrs":{"id":"3f2028c3858345d6ab6c18de79ed15b5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"使用 MCP 2.0 协议,通过 "},{"type":"text","text":" 和 "},{"type":"text","text":" 注册工具"}]},{"type":"paragraph","attrs":{"id":"20ddec58c86945f0a24a543e1ef0c44a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"文本对话调用混元 OpenAI 兼容接口:"},{"type":"text","text":",模型使用 "}]},{"type":"paragraph","attrs":{"id":"1282a1f054044733adfd693d86cf2711","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"生图调用:"},{"type":"text","text":",模型使用 "}]},{"type":"paragraph","attrs":{"id":"561bb59440c74ad1a3f4e886981b6cf1","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"生图结果自动下载到本地目录"}]},{"type":"codeBlock","attrs":{"id":"5f9384ddd02b49d2b93a09c6602916cc","language":"python","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"5599a","languageByAi":"python"},"content":[{"type":"text","text":"n#!/usr/bin/env python3n"""腾讯混元 Hunyuan MCP Servern提供 hunyuan_chat(文本对话)和 hunyuan_image(生图)两个工具n"""nnimport osnimport jsonnimport base64nimport asyncionfrom pathlib import Pathnnimport httpxnfrom mcp.server import Servernfrom mcp.server.stdio import stdio_servernfrom mcp import typesnnAPI_KEY = os.environ.get("HUNYUAN_API_KEY", "")nBASE_URL = "https://tokenhub.tencentmaas.com/v1"nnserver = Server("hunyuan")nnTOOLS = [ntypes.Tool(nname="hunyuan_chat",ndescription="腾讯混元文本对话",ninputSchema={n"type": "object",n"required": ["message"],n"properties": {n"message": {"type": "string", "description": "用户消息"},n"system_prompt": {"type": "string", "description": "系统提示词"},n"model": {"type": "string", "default": "hy3"},n}n}n),ntypes.Tool(nname="hunyuan_image",ndescription="腾讯混元生图",ninputSchema={n"type": "object",n"required": ["prompt"],n"properties": {n"prompt": {"type": "string", "description": "图片描述"},n"size": {"type": "string", "default": "1024:1024"},n}n}n),n]nnn# ... 工具处理逻辑详见完整代码nnn"}]},{"type":"blockquote","attrs":{"id":"69f98da60e2d4055a1b07f9d45763a56","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"c467911ee6c4411492745b648f826b76","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"完整代码已开源,文末附获取方式。"}]}]},{"type":"heading","attrs":{"id":"ee62329395d34dbb82ee3f2a66ec5e6e","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"2.3 验证脚本"}]},{"type":"paragraph","attrs":{"id":"91b24f56cbcf48c49353310f8372bcdb","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"写完后先验证脚本能正常加载:"}]},{"type":"codeBlock","attrs":{"id":"e5e01d8384534d35baca4b07f7acdfbb","language":"bash","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"2f38a","languageByAi":"bash"},"content":[{"type":"text","text":"npython -c "nimport importlib.utilnspec = importlib.util.spec_from_file_location('server', 'server.py')nmod = importlib.util.module_from_spec(spec)nspec.loader.exec_module(mod)nprint('Server name:', mod.server.name)nprint('Tools:', [t.name for t in mod.TOOLS])n"nn"}]},{"type":"paragraph","attrs":{"id":"d8a6677e6e1046f0aaa05f9cc0fe963a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"看到输出 "},{"type":"text","text":" 就说明没问题。"}]},{"type":"heading","attrs":{"id":"c4a30ebb667248e79c093e1e0c56f09a","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"三、配置 WorkBuddy MCP 连接器"}]},{"type":"heading","attrs":{"id":"bc72f9c23f7349ac8fa063a55924da43","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.1 编辑 mcp.json"}]},{"type":"paragraph","attrs":{"id":"e64cc78e1a6b4be7abeff66070fdd958","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"找到 WorkBuddy 的 MCP 配置文件,路径为:"}]},{"type":"codeBlock","attrs":{"id":"b8009e9a59604b6ba87a141c5a4e9940","language":"","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"2c187","languageByAi":""},"content":[{"type":"text","text":"n~/.workbuddy/mcp.jsonnn"}]},{"type":"blockquote","attrs":{"id":"4bc666e104714d498b2ffd06a73661f9","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"a2a5f5083d87413ba91e44213acf3c18","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"注意:是 "},{"type":"text","text":",不是 "},{"type":"text","text":"。WorkBuddy 的「自定义连接器」读取的是不带点前缀的文件。"}]}]},{"type":"paragraph","attrs":{"id":"73e1ae5bbe4b4a3ba17bf798b3bb7e68","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"添加混元 MCP Server 配置:"}]},{"type":"codeBlock","attrs":{"id":"6605560e7f2c4abd936d6bb8a3953940","language":"json","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"c428d","languageByAi":"json"},"content":[{"type":"text","text":"n{n"mcpServers": {n"hunyuan": {n"type": "stdio",n"command": "C:/Users/你的用户名/.workbuddy/binaries/python/envs/default/Scripts/python.exe",n"args": [n"C:/Users/你的用户名/.workbuddy/hunyuan-mcp/server.py"n],n"env": {n"HUNYUAN_API_KEY": "sk-你的API Key"n},n"description": "腾讯混元 MCP Server - 文本对话和图像生成"n}n}n}nn"}]},{"type":"heading","attrs":{"id":"c7b7973b8cba4f0783d1e0eaa2c9a714","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.2 信任连接器"}]},{"type":"paragraph","attrs":{"id":"97b65b817b15412698bc63449f38565d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"在 WorkBuddy 界面打开「连接器管理」→「自定义连接器」"}]},{"type":"paragraph","attrs":{"id":"ebbe8b76794c4c28a3979dfd731a6577","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"找到新出现的 "},{"type":"text","text":" 连接器"}]},{"type":"paragraph","attrs":{"id":"eeececf3390c46a697618fa5c98d3a56","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"点击「信任」按钮启用"}]},{"type":"blockquote","attrs":{"id":"7acb2761fc57481c964dc3ae228b3ae1","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"2e6c44f8af0049cfaae2bf2400ca40b9","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"这一步是安全机制,必须在应用界面手动点击,无法通过代码绕过。"}]}]},{"type":"heading","attrs":{"id":"2ccbd1ba58d14bf9ab8da5d66ff59ddb","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"四、实测效果"}]},{"type":"heading","attrs":{"id":"c4319089a3554f83b6b7d33a12ce5b68","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"4.1 文本对话测试"}]},{"type":"paragraph","attrs":{"id":"ca2dcd9f6d114d8e90aa5af084003acf","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置完成后,我直接对 WorkBuddy 说:"},{"type":"text","text":"""},{"type":"text","text":"用混元帮我打个招呼"},{"type":"text","text":"""},{"type":"text","text":"。"}]},{"type":"paragraph","attrs":{"id":"ff9d716964194b8185b858477c6e4281","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"WorkBuddy 自动调用 "},{"type":"text","text":" 工具,混元回复:"}]},{"type":"blockquote","attrs":{"id":"e74d1b76cbeb423e8a5b66beb42c8bcc","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"d818eba5009643fd8b05fa4ac693db48","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"""},{"type":"text","text":"我是混元,是由腾讯开发的大模型,专注于基础信息处理与逻辑响应。"},{"type":"text","text":"""}]}]},{"type":"paragraph","attrs":{"id":"8b40bb934b7341cd966b0ea24f12d2a9","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"Token 消耗:prompt=21, completion=18, total=39 tokens。按 hy3 定价(输入1元/百万tokens,输出4元/百万tokens),这一次对话花费约 0.0001 元,几乎可以忽略。"}]},{"type":"heading","attrs":{"id":"c4701622bee44b479602dd5985c08367","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"4.2 生图测试"}]},{"type":"paragraph","attrs":{"id":"456cbbc71d91436cad391ab8f01edbc0","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"生图测试时遇到了混元平台 504 网关超时(平台侧临时问题),这是正常的,重试即可。混元生图首次开通赠送 50 次免费额度,足够测试使用。"}]},{"type":"heading","attrs":{"id":"eaf6c09fd033415cad75eb5ad1e49cc3","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"五、混元模型定价参考"}]},{"type":"paragraph","attrs":{"id":"4b9c088431d84f6b9ace394e6ee9eb6a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"| 能力 | 定价 | 免费额度 |"},{"type":"text","text":" "},{"type":"text","text":"|------|------|---------|"},{"type":"text","text":" "},{"type":"text","text":"| 文本对话(hy3) | 输入1元/百万tokens,输出4元/百万tokens | 无 |"},{"type":"text","text":" "},{"type":"text","text":"| 图像生成 | 0.5元/张(月用量"},{"type":"text","text":"<"},{"type":"text","text":"1万张) | 50次 |"}]},{"type":"paragraph","attrs":{"id":"d6ce04b17b234ed9bd210e81c3734aa9","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"对比其他主流模型,混元 hy3 的定价非常有竞争力,尤其适合日常高频使用场景。"}]},{"type":"heading","attrs":{"id":"49f4ab1055de4df38bb86f70843ac97b","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"六、踩坑记录"}]},{"type":"heading","attrs":{"id":"daa987a5ffd14cf78cc5a649330b3ae9","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"坑1:SecretId vs TokenHub API Key"}]},{"type":"paragraph","attrs":{"id":"42233a95483a4b92a217ea2583ea8b3f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"最初以为混元 API 用的是腾讯云 CAM 的 SecretId/SecretKey,折腾了好几轮才发现混元 OpenAI 兼容接口需要的是 TokenHub API Key。两者完全不同:"}]},{"type":"paragraph","attrs":{"id":"3ad33842b03f47bfaccd57668e64defa","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"CAM 密钥:"},{"type":"text","text":" 格式,用于腾讯云 SDK"}]},{"type":"paragraph","attrs":{"id":"9a4c7d8df3554df391283314a6bbf038","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"TokenHub API Key:"},{"type":"text","text":" 格式,用于混元 OpenAI 兼容接口"}]},{"type":"heading","attrs":{"id":"cd0222e48e0f40e9a919a5a40be3df67","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"坑2:mcp.json vs .mcp.json"}]},{"type":"paragraph","attrs":{"id":"011c4ecce1aa44bc9c4a824b4f3fb304","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"WorkBuddy 的「自定义连接器」读取的是 "},{"type":"text","text":"(不带点前缀)。如果配置写到了 "},{"type":"text","text":",连接器列表会显示为空。"}]},{"type":"heading","attrs":{"id":"e271bc76c70b453f89aa8cd9e254373b","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"坑3:MCP 2.0 API 变更"}]},{"type":"paragraph","attrs":{"id":"a16dc1c6ee844957a78812fb081495ac","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"MCP 2.0 的 Python SDK API 有变化,不能用旧版装饰器。需要用 "},{"type":"text","text":" 和 "},{"type":"text","text":" 注册处理器,返回 "},{"type":"text","text":" 和 "},{"type":"text","text":"。"}]},{"type":"heading","attrs":{"id":"4301e5f78bef4bbbbbde731db389ef61","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"七、总结"}]},{"type":"paragraph","attrs":{"id":"bcc7ad4aee604b5e94fa9cbea9e7c5f6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"通过 MCP 协议接入混元大模型,WorkBuddy 的能力得到了进一步扩展:"}]},{"type":"paragraph","attrs":{"id":"48c47569ec674ff18c344e9fafd31b27","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"文本对话"},{"type":"text","text":":hy3 模型中文能力强,适合日常问答、写作、翻译"}]},{"type":"paragraph","attrs":{"id":"d95166066d6440d2a0ab72e347be722a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"AI 生图"},{"type":"text","text":":混元生图擅长中国元素、东方美学风格"}]},{"type":"paragraph","attrs":{"id":"479b1e142c9941919ece40790366befe","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"成本极低"},{"type":"text","text":":对话费用几乎可以忽略,生图有50次免费额度"}]},{"type":"paragraph","attrs":{"id":"6d8b6ad6bd27456f8918dda393baa953","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"本地运行"},{"type":"text","text":":MCP Server 跑在本地,数据不出机器"}]},{"type":"paragraph","attrs":{"id":"bd4ccf2db5a74601822b737a9fdad9d1","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"整个过程不需要高深的技术背景,跟着教程一步步操作即可完成。如果你也用 WorkBuddy,强烈推荐试试接入混元,体验腾讯自家大模型的能力。"}]},{"type":"paragraph","attrs":{"id":"124eb9216c154ee7b4818b0060fb9020","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"本文为原创实操教程,基于真实操作记录。如有问题欢迎在评论区交流。"}]}]}","createTime":1785762913,"ext":{"closeTextLink":0,"comment_ban":0,"description":"","focusRead":0},"favNum":0,"html":"","isOriginal":0,"likeNum":0,

热门栏目