Support Claude on Vertex AI (vendor + register vertex-anthropic provider) — B1 #169
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-27/vertex-anthropic-provider"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds an opt-in Claude-on-Vertex provider (Option B / Approach B1 from the LLM-provider
investigation). With
PILOOP_VERTEX_ANTHROPIC=1andPILOOP_MODEL="vertex-anthropic/claude-opus-4-8",pi-loop stage sessions run against Claude models served via Google Cloud Vertex AI using
existing GCP/ADC credentials. Default OFF = zero behavioural change for all existing providers.
Changes
pi-provider-vertex-anthropic@0.1.3(MIT) intosrc/model/vertexAnthropic/(config, auth, shell, models, messages, vertex-api) with per-file provenance headers.
@earendil-works/pi-ai@0.81.1(matches the bundled SDK); re-pointed thevendored
@mariozechner/pi-aiimports to it.registerVertexAnthropic()callsModelRuntime.registerProvider(...); env-gatedmaybeRegisterVertexAnthropic()wired intocreatePiStageSession.ts.resolveRegion()also honoursGOOGLE_CLOUD_LOCATION(consistency with builtin google-vertex).B1 implemented,
NOTICEfor MIT attribution.Testing
message/tool conversion, SSE parse + request body, registration gate).
npm run lint(0 errors/0 warnings) andnpm run buildpass.PILOOP_E2E=1+PILOOP_VERTEX_ANTHROPIC=1) — added but not runhere (needs live GCP creds); skips cleanly by default.
Checklist
Closes #27
WIP: Support Claude on Vertex AI (vendor + register vertex-anthropic provider) — B1to Support Claude on Vertex AI (vendor + register vertex-anthropic provider) — B1