Sign inSign up

christianhkb/sbx-kit-pi-gcp:latest

Multi-platform
Manifest digest

sha256:fc0a7a0cd31e24a0cd05dbf959bca8b2a01d77818ac322603afda0b31eddc5ef

Last pushed

4 days by christianhkb

Type

Sandbox Kit

Manifest digest

sha256:fc0a7a0cd31e24a0cd05dbf959bca8b2a01d77818ac322603afda0b31eddc5ef

yaml
schemaVersion: "3"
displayName: Pi GCP Models
description: Adds GCP-hosted models to Pi through Vertex AI
version: 0.1.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 (Vertex MaaS)"
                        },
                        {
                          "id": "zai-org/glm-5.2-maas",
                          "displayName": "GLM 5.2 (Vertex MaaS)"
                        },
                        {
                          "id": "zai-org/glm-5-maas",
                          "displayName": "GLM 5 (Vertex MaaS)"
                        }
                      ]
                    }
                  }
                }
              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 Vertex AI
args:
    location:
        default: global
        description: Vertex AI endpoint location
    project:
        required: true
        description: GCP project containing the Vertex models