跳到正文
@OpenRouter· @OpenRouter · X·· 26 天前AI 评分61
AI 导读

OpenRouter 推出服务端 shell 工具,模型可自行判断何时需要终端。该工具同时兼容 OpenAI 原生的 shell 工具和 Anthropic 的 bash 工具规范。使用时只需在 tools 数组中加入 {"type": "openrouter:shell", "parameters": {"engine": "openrouter"}},并附有说明链接。

正文

Add the server tool to your request and the model decides when it needs a terminal. We support both the native OpenAI shell tool and Anthropic bash tool specs. Just add it to your tools array:

{ "type": "openrouter:shell", "parameters": { "engine": "openrouter" } }

https://t.co/5k9R3kSq8X

来源:@OpenRouter · x.com