claw-subagent-service 0.0.145 → 0.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claw-subagent-service",
3
- "version": "0.0.145",
3
+ "version": "0.0.146",
4
4
  "description": "虾说智能助手",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -164,9 +164,11 @@ async function forwardChatMessage(sessionId, content, onDelta, logFn, timeoutMs
164
164
  log('DEBUG', `发送消息: ${content}`);
165
165
  log('DEBUG', `请求超时: ${timeoutMs}ms`);
166
166
 
167
- // 构建请求体,包含 system 参数
167
+ // 构建请求体,包含 system 和 model 参数
168
+ // model 字段是必需的,告诉 Gateway 使用哪个 AI 提供商和模型
168
169
  const requestBody = {
169
170
  system: SYSTEM_PROMPT,
171
+ model: { providerID: 'opencode', modelID: 'default' },
170
172
  parts: [{ type: 'text', text: content }]
171
173
  };
172
174