Skip to content
字数:128 字
预计:1 分钟
阅读量:

配置

作者:winches
更新于:1 分钟前

配置文件:https://pi.dev/docs/latest/custom-provider

json
{
  "providers": {
    "gpt-sub2api": {
      "baseUrl": "xxx",
      "api": "openai-responses",
      "apiKey": "xxx",
      "authHeader": true,
      "models": [
        {
          "id": "gpt-5.5",
          "name": "GPT-5.5 via Sub2API",
          "reasoning": true,
          "thinkingLevelMap": {
            "off": null,
            "minimal": null,
            "low": null,
            "medium": null,
            "xhigh": "xhigh"
          },
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 272000,
          "maxTokens": 128000
        }
      ]
    },
    "cc-sub2api": {
      "baseUrl": "xxx",
      "api": "anthropic-messages",
      "apiKey": "xxx",
      "authHeader": true,
      "models": [
        {
          "id": "claude-opus-4-8-thinking[1m]",
          "name": "Claude Opus 4.8 Thinking via Sub2API",
          "reasoning": true,
          "thinkingLevelMap": {
            "off": null,
            "minimal": null,
            "low": null,
            "medium": null,
            "high": "xhigh",
            "xhigh": "max"
          },
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000
        }
      ]
    }
  }
}

Made with ❤️