chore(vendor): import pi 1.3.0

Imported as a linear vendor commit so forge rebases do not replay the upstream root tree.

git-subtree-dir: third_party/pi

git-subtree-split: 71023aec1546d6d677a65669c5665c0927ce0dd0
This commit is contained in:
alexion committed 2026-10-15 17:58:48 -04:00
1 parent 719370c8f7
commit 6081e3e325
1743 files changed
+205459 -131704

No files matched your search

@@ -14,7 +14,7 @@
import { describe, expect, it, vi } from "vitest";
import { generateImages } from "../src/images.ts";
import type { ImagesContext, ImagesModel } from "../src/types.ts";
import type { ImageModel, ImagesContext } from "../src/types.ts";
// Reproduce the openai SDK APIError shape: makeMessage(status, error, message)
// returns `"403 status code (no body)"` when status is set but the parsed body
@@ -52,7 +52,8 @@ vi.mock("openai", () => {
describe("provider error body passthrough", () => {
it("surfaces the HTTP body reason instead of the opaque SDK message (openrouter images)", async () => {
const model: ImagesModel<"openrouter-images"> = {
const model: ImageModel<"openrouter-images"> = {
type: "image",
id: "black-forest-labs/flux.2-pro",
name: "FLUX.2 Pro",
api: "openrouter-images",