openclaw设置心跳独立API模型
heartbeat下的model是心跳特殊调用的模型,可与聊天模型不同。
·
配置文件:
"agents": {
"defaults": {
"model": {
"primary": "minimax/MiniMax-M2.1"
},
"workspace": "/root/.openclaw/workspace",
"compaction": {
"mode": "safeguard"
},
"heartbeat": {
"every": "30m",
"model": "nvdia/moonshotai/kimi-k2.5",
"includeReasoning": true
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
heartbeat下的model是心跳特殊调用的模型,可与聊天模型不同
以下是同一个模型供应商但是添加两个模型的配置文件:
"models": {
"providers": {
"aigcbest": {
"baseUrl": "https://api2.aigcbest.top/v1",
"apiKey": "你的APIkey",
"api": "anthropic-messages",
"models": [
{
"id": "gemini-3-flash-preview-nothinking",
"name": "gemini-3-flash-preview-nothinking",
"api": "openai-completions",
"reasoning": true,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192
},
{
"id": "gemini-2.5-flash-image",
"name": "gemini-2.5-flash-image",
"api": "openai-completions",
"reasoning": true,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192
}
]
},
更多推荐

所有评论(0)