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

创建或粘贴至.pi/agent/models.json 即可 { "providers": { "opencode-go": { "apiKey": "your-api-key", "models": [ { "id": "deepseek-v4-flash", "name": "DeepSeek ...
分享一个在pi agent中使用opencode,go订阅模型的配置模板,填入key可直接使用
分享一个在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,
          "maxTokens": 384000,
          "cost": {
            "input": 0.14,
            "output": 0.28,
            "cacheRead": 0.0028,
            "cacheWrite": 0
          },
          "compat": {
            "requiresReasoningContentOnAssistantMessages": true,
            "thinkingFormat": "deepseek"
          }
        },
        {
          "id": "deepseek-v4-pro",
          "name": "DeepSeek V4 Pro",
          "reasoning": true,
          "thinkingLevelMap": {
            "xhigh": "max"
          },
          "input": [
            "text"
          ],
          "contextWindow": 1000000,
          "maxTokens": 384000,
          "cost": {
            "input": 1.74,
            "output": 3.48,
            "cacheRead": 0.0145,
            "cacheWrite": 0
          },
          "compat": {
            "requiresReasoningContentOnAssistantMessages": true,
            "thinkingFormat": "deepseek"
          }
        },
        {
          "id": "glm-5",
          "name": "GLM-5",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 202752,
          "maxTokens": 32768,
          "cost": {
            "input": 1,
            "output": 3.2,
            "cacheRead": 0.2,
            "cacheWrite": 0
          }
        },
        {
          "id": "glm-5.1",
          "name": "GLM-5.1",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 202752,
          "maxTokens": 32768,
          "cost": {
            "input": 1.4,
            "output": 4.4,
            "cacheRead": 0.26,
            "cacheWrite": 0
          }
        },
        {
          "id": "kimi-k2.5",
          "name": "Kimi K2.5",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 262144,
          "maxTokens": 65536,
          "cost": {
            "input": 0.6,
            "output": 3,
            "cacheRead": 0.1,
            "cacheWrite": 0
          }
        },
        {
          "id": "kimi-k2.6",
          "name": "Kimi K2.6",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 262144,
          "maxTokens": 65536,
          "cost": {
            "input": 0.95,
            "output": 4,
            "cacheRead": 0.16,
            "cacheWrite": 0
          }
        },
        {
          "id": "mimo-v2.5",
          "name": "MiMo V2.5",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 0.4,
            "output": 2,
            "cacheRead": 0.08,
            "cacheWrite": 0
          }
        },
        {
          "id": "mimo-v2.5-pro",
          "name": "MiMo V2.5 Pro",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 1048576,
          "maxTokens": 128000,
          "cost": {
            "input": 1,
            "output": 3,
            "cacheRead": 0.2,
            "cacheWrite": 0
          }
        },
        {
          "id": "minimax-m2.5",
          "name": "MiniMax M2.5",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 204800,
          "maxTokens": 65536,
          "cost": {
            "input": 0.3,
            "output": 1.2,
            "cacheRead": 0.03,
            "cacheWrite": 0
          }
        },
        {
          "id": "minimax-m2.7",
          "name": "MiniMax M2.7",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 204800,
          "maxTokens": 131072,
          "cost": {
            "input": 0.3,
            "output": 1.2,
            "cacheRead": 0.06,
            "cacheWrite": 0
          }
        },
        {
          "id": "qwen3.5-plus",
          "name": "Qwen3.5 Plus",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 262144,
          "maxTokens": 65536,
          "cost": {
            "input": 0.2,
            "output": 1.2,
            "cacheRead": 0.02,
            "cacheWrite": 0.25
          },
          "compat": {
            "thinkingFormat": "qwen"
          }
        },
        {
          "id": "qwen3.6-plus",
          "name": "Qwen3.6 Plus",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 262144,
          "maxTokens": 65536,
          "cost": {
            "input": 0.5,
            "output": 3,
            "cacheRead": 0.05,
            "cacheWrite": 0.625
          },
          "compat": {
            "thinkingFormat": "qwen"
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://opencode.ai/zen/go/v1"
    }
  }
}

1 个帖子 - 1 位参与者

阅读完整话题

来源: LinuxDo 最新话题查看原文