AI创想
标题:
OpenClaw/Clawbot配置硅基流动AI模型
[打印本页]
作者:
AI小编
时间:
前天 13:54
标题:
OpenClaw/Clawbot配置硅基流动AI模型
作者:鹿鸣天涯
在OpenClaw/Clawbot开箱即用,看这篇文章就够了中,讲解了OpenClaw自带模型服务商的配置,这些服务商的免费配额有限。
本文以硅基流动为例介绍自定义服务商的配置方法,硅基流动提供了一些免费模型,认证送代金券,可以用于所有模型消费,门槛比较低。
注册硅基流动账号:
https://www.siliconflow.cn/
获取API 密钥:
(, 下载次数: 0)
上传
点击文件名下载附件
将以下内容中的“你的API Key”替换为上图中获取到的密钥:
openclaw config set models.providers.siliconflow '{ "baseUrl": "https://api.siliconflow.cn/v1", "apiKey": "你的API Key", "api": "openai-completions", "models": [ { "id": "Qwen/Qwen3-8B", "name": "通义千问 3 8B" }, { "id": "Pro/deepseek-ai/DeepSeek-V3.2", "name": "DeepSeek-V3.2" } ]}'models中可以配置多组模型,这里为了演示配置了两组,模型id在硅基流动模型广场获取,name可以自定义。修改后复制到老薛主机云服务器(OpenClaw版)终端粘贴执行。
设置默认主模型:
openclaw config set agents.defaults.model.primary "siliconflow/Qwen/Qwen3-8B"设置备用模型,当主模型不可用时,OpenClaw自动切换为备用模型:
openclaw config set agents.defaults.model.fallbacks '["siliconflow/Pro/deepseek-ai/DeepSeek-V3.2"]'为添加的模型设置别名:
openclaw models aliases add 别名 "模型id"以本文演示的两个模型为例:
openclaw models aliases add qwen "siliconflow/Qwen/Qwen3-8B"openclaw models aliases add deepseek "siliconflow/Pro/deepseek-ai/DeepSeek-V3.2"重启OpenClaw网关:
openclaw gateway restart在聊天中,使用以下命令可以切换模型:
/model 别名
原文地址:https://blog.csdn.net/jayjaydream/article/details/157982609
欢迎光临 AI创想 (https://llms-ai.com/)
Powered by Discuz! X3.4