ktze分享一个在pi agent中使用opencode,go订阅模型的配置模板,填入key可直接使用 中发帖

创建或粘贴至.pi/agent/models.json 即可 
{
  "providers": {
    "opencode-go": {
      "apiKey": "your-api-key",
      "models": [
        {
          "id": "deepseek-v4-flash",
          "name": "DeepSeek V4 Flash",
          "reasoning": true,
          "thinkingLevelMap": {
            "xhigh": "max"
          },
          "input": [
            "text"
          ],
          "contextWindow": 1000000,
  ...
 
 
Back to Top