Sign inSign up

christianhkb/sbx-kit-pi-gcp:0.2.0

Multi-platform
Manifest digest

sha256:b35ef27d4751984aadcebda29754352974d94197722a61b1facd4aa83aa4cf0c

Last pushed

23 days by christianhkb

Type

Sandbox Kit

Manifest digest

sha256:b35ef27d4751984aadcebda29754352974d94197722a61b1facd4aa83aa4cf0c

yaml
schemaVersion: "3"
displayName: Pi GCP Models
description: Adds GCP-hosted models to Pi through Agent Platform AI
version: 0.2.0
kind: mixin
capabilities:
    - type: com.docker.sandbox/lifecycle@1
      config:
        files:
            - content: |
                {
                  "providers": {
                    "gcp-oss-maas": {
                      "baseUrl": "https://aiplatform.googleapis.com/v1/projects/${{ kit.args.project }}/locations/${{ kit.args.location }}/endpoints/openapi",
                      "api": "openai-completions",
                      "apiKey": "$GCP_VERTEX_ACCESS_TOKEN",
                      "authHeader": true,
                      "models": [
                        {
                          "id": "qwen/qwen3-next-80b-a3b-thinking-maas",
                          "displayName": "Qwen 3 Next 80B Thinking (Agent Platform MaaS)",
                          "reasoning": true,
                          "input": ["text"],
                          "contextWindow": 262144,
                          "cost": {"input": 0.15, "output": 1.2, "cacheRead": 0, "cacheWrite": 0}
                        },
                        {
                          "id": "qwen/qwen3-next-80b-a3b-instruct-maas",
                          "displayName": "Qwen 3 Next 80B Instruct (Agent Platform MaaS)",
                          "reasoning": false,
                          "input": ["text"],
                          "contextWindow": 262144,
                          "cost": {"input": 0.15, "output": 1.2, "cacheRead": 0, "cacheWrite": 0}
                        },
                        {
                          "id": "qwen/qwen3-coder-480b-a35b-instruct-maas",
                          "displayName": "Qwen 3 Coder 480B Instruct (Agent Platform MaaS)",
                          "reasoning": false,
                          "input": ["text"],
                          "contextWindow": 258000,
                          "cost": {"input": 0.2, "output": 1.62, "cacheRead": 0.02, "cacheWrite": 0.2}
                        },
                        {
                          "id": "zai-org/glm-5.2-maas",
                          "displayName": "GLM 5.2 (Agent Platform MaaS)",
                          "reasoning": true,
                          "input": ["text"],
                          "contextWindow": 1000000,
                          "cost": {"input": 1.4, "output": 4.4, "cacheRead": 0.14, "cacheWrite": 1.4}
                        },
                        {
                          "id": "zai-org/glm-5-maas",
                          "displayName": "GLM 5 (Agent Platform MaaS)",
                          "reasoning": true,
                          "input": ["text"],
                          "contextWindow": 200000,
                          "cost": {"input": 1, "output": 3.2, "cacheRead": 0.1, "cacheWrite": 1}
                        },
                        {
                          "id": "deepseek-ai/deepseek-v3.2-maas",
                          "displayName": "Deepseek v3.2 (Agent Platform MaaS)",
                          "reasoning": true,
                          "input": ["text"],
                          "contextWindow": 163840,
                          "cost": {"input": 0.56, "output": 1.68, "cacheRead": 0.056, "cacheWrite": 0.56}
                        },
                        {
                          "id": "moonshotai/kimi-k2-thinking-maas",
                          "displayName": "Kimi K2 Thinking (Agent Platform MaaS)",
                          "reasoning": true,
                          "input": ["text"],
                          "contextWindow": 262144,
                          "cost": {"input": 0.6, "output": 2.5, "cacheRead": 0.06, "cacheWrite": 0.6}
                        }
                      ]
                    }
                  }
                }
              mode: "0644"
              overwrite: false
              path: /home/agent/.pi/agent/models.json
    - type: com.docker.sandbox/network-policy@1
      config:
        runtime:
            allow:
                - aiplatform.googleapis.com
    - type: com.docker.sandbox/credential@1
      config:
        apiKey:
            inject:
                - domain: aiplatform.googleapis.com
                  format: Bearer %s
                  header: Authorization
            name: GCP_VERTEX_ACCESS_TOKEN
            proxyManaged: true
        phase: runtime
        service: gcp-vertex
      description: Google Cloud Agent Platform AI
args:
    location:
        default: global
        description: Agent Platform AI endpoint location
    project:
        required: true
        description: GCP project containing the Agent Platform models